Select option with entire object as value
<p>In my React select input, I want to iterate through my drivers array and for each driver generate the  with the single driver as value. But when I console log the target value I have only a [object Object] and if I try to call, for example, driver.driverName I obtain "undefined". Why?</p>

<pre><code>&lt;label className="pt-label pt-inline"&gt;
        Autista
        &lt;div className="pt-select"&gt;
            &lt;select onChange={this.changeDriver}&gt;
                &lt;option&gt;Scegli autista&lt;/option&gt;
                {this.props.drivers.map((driver) =&gt; {
                    return &lt;option key={driver.key}
                                   value={driver}&gt;{driver.driverName} {driver.driverLastname}&lt;/option&gt;
                                    })}
            &lt;/select&gt;
        &lt;/div&gt;
&lt;/label&gt;
</code></pre>