title: How to handle group radio button in React JS - FUNCTIONAL COMPONENT
body: <p>I want to select only one option in the group of radio buttons. i can only find class component code online.
  Also help me with a onChange function to handle this.</p>
  <pre><code>const [radioOption, setradioOption]= useState(true)
  
  const handleRadioChange = () =&gt;{
  
  }
      return(
  &lt;&gt;
  &lt;Form.Group 
      inline 
      style={{
          display:'flex',  
          justifyContent:'space-between'}}
      &gt;
      &lt;Form.Radio
      onChange={handleRadioChange}
      value=&quot;All devices&quot;
      label='All devices' 
      defaultChecked/&gt;
  
      &lt;Form.Radio
      onChange={handleRadioChange}
      value='Mobile only'
      label='Mobile only'/&gt;
  
      &lt;Form.Radio
      onChange={handleRadioChange}
      value='Desktop only'
      label='Desktop only'/&gt;
  
  &lt;/Form.Group&gt;
  
  
  &lt;/&gt;)
  </code></pre>