title: How do I get the value of Radio button(react-radio-buttons) in Reactjs?
body: <p>How do I get the value of radio buttons , if I call <strong>updateRadioButton</strong> in RadioGroup, it results in error. I need to print as Male or Female in console using (react-radio-buttons). Radio Buttons are printing correctly but I'm unable to get the value. Thank you in Advance.</p>
  
  <pre><code> class CreateUserComponent extends React.Component {
          constructor(props) {
          super(props); 
          this.state={radio:''}
      }
  
      updateRadioButton(e) {
          this.setState({ radio: e.target.value });
      }
  
      &lt;RadioGroup horizontal&gt;
              &lt;RadioButton value="Male"&gt;Male&lt;/RadioButton&gt;
              &lt;RadioButton value="Female"&gt;Female&lt;/RadioButton&gt;
          &lt;/RadioGroup&gt;
  </code></pre>