Wybierz elementy z selektorów w .Map ReactJs
{this.props.categories.map((items , index)=>{
<option key{index}>{items.categoryName} </option>
})}
Jittery Jackal
{this.props.categories.map((items , index)=>{
<option key{index}>{items.categoryName} </option>
})}
{this.props.categories.map((items , index)=>{
<option key{index}>{items.categoryName} </option>
})}
//// created by Aqdas
var Answer = props =>
<select>{props.data.map((x,y) => <option key={y}>{x}</option>)}</select>;