title: How to map state variable in react-select?
body: <p>How to onChange with same object in options</p>
  
  <pre><code>&lt;Select
        options={this.state.materialunit.map(obj =&gt; {return({value: obj.materialunitID, label: obj.unitName + ': ' + obj.materialName})})}
        onChange={e =&gt; this.setState({unitPrice: obj.unitPrice })}
  /&gt;
  </code></pre>