title: React get dropdown from array of object selected when value is an object
body: <p>I have dropdown like this now. Its working I am getting value as I need , but how to get name in dropdown change as selected, when value is an object. Any ideas, please?</p>
  
  <pre><code>onDropdownSelected = (e) =&gt; {           
      if (e.target.value !== '') {
          const inst = JSON.parse(e.target.value)
          console.log('inst', inst)           
         }
      }
  
  
  &lt;select id="mySelect" onChange={this.onDropdownSelected}&gt;
    {installations.map(installation =&gt; 
     &lt;option key={installation._id} name={installation._id} value= 
     {JSON.stringify(installation)}&gt;{installation.name}&lt;/option&gt;)}
  &lt;/select&gt;
  </code></pre>