select the items from selectors in .map reactjs
{this.props.categories((items , index)=>{
<option key{index}>{items.categoryName} </option>
})}
select the items from selectors in .map reactjs
{this.props.categories((items , index)=>{
<option key{index}>{items.categoryName} </option>
})}
select the items from selectors in .map reactjs
{this.props.categories.map((items , index)=>{
<option key{index}>{items.categoryName} </option>
})}
select the items from selectors in .map reactjs
{this.props.categories.map((items , index)=>{
<option key{index}>{items.categoryName} </option>
})}
//// created by Aqdas
map array to a select tag
var Answer = props =>
<select>{props.data.map((x,y) => <option key={y}>{x}</option>)}</select>;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us