title: How to pass options value to a function in react?
body: <p>How to pass option's value to a function on select ?</p>
  
  <pre><code>submit = (selectedOption) =&gt; {
    console.log('Selected value:',selectedOption);
  }
  
  render(){
      return
         &lt;select onChange={this.submit}&gt;
            &lt;option value="Bangalore"&gt;Bangalore&lt;/option&gt;
            &lt;option value="Delhi"&gt;Delhi&lt;/option&gt;
            &lt;option value="Mumbai"&gt;Mumbai&lt;/option&gt;
         &lt;/select&gt;
  }
  </code></pre>