title: Creating radio button in React using ref
body: <p>Need to create radio buttons for Title (Mr. &amp; Ms.) <strong>using react and the ref attribute</strong>.</p>
  
  <p><strong>Code for Class(Omitting the useless part)</strong>:- </p>
  
  <pre><code>getTitle () {
  // how could I get the selected title value here
  var title = this.refs. ??;
  },
  
  render () {
     return (
         &lt;div className='input-wrap'&gt;
                          &lt;label className='label'&gt;
                              Mr.
                          &lt;/label&gt;
                          &lt;input  className='input'
                                  type='radio'
                                  ref= 'title'
                                  name='user_title'
                                  value='Mr.'
                                  selected /&gt;
  
                          &lt;label className='label'&gt;
                              Ms.
                          &lt;/label&gt;
                          &lt;input  className=input'
                                  type='radio'
                                  ref= 'title'
                                  name='user_title'
                                  value='Ms.' /&gt;
                      &lt;/div&gt;
  
        )
       }
  </code></pre>
  
  <p><strong>Question:-</strong> <em>How could I get the selected Title value in getTitl</em>e() ?</p>