What am I doing wrong here? (probably everything). I'd like 'foo' to come up as the selection and the value when selected to be 1. The error I get is 'Objects are not valid as a React child'.
constructor(props) {
this.state = {options: {name: 'foo', value: 1}};
}
render() {
return (
<div>
<select>{this.state.options}</select>
</div>
);
}
{ name, value }objects? Not really sure how the current data structure translates to options