How to create a simple React Dropdown
Setting option={num}
will not work in jsx. You need to use <option>
tags:
Something like this is what you are after:
<select name="select" onChange={this.num}>
{num.map(function(n) {
return (<option value={n} selected={this.state.selected === n}>{n}</option>);
})}
</select>