Answers for "select the items from selectors in .map reactjs"

1

select the items from selectors in .map reactjs

{this.props.categories((items , index)=>{
  <option key{index}>{items.categoryName} </option>
})}
Posted by: Guest on January-09-2021
1

select the items from selectors in .map reactjs

{this.props.categories.map((items , index)=>{
  <option key{index}>{items.categoryName} </option>
})}
Posted by: Guest on January-09-2021
1

select the items from selectors in .map reactjs

{this.props.categories.map((items , index)=>{
  <option key{index}>{items.categoryName} </option>
})}      
//// created by Aqdas
Posted by: Guest on January-09-2021
0

map array to a select tag

var Answer = props => 
    <select>{props.data.map((x,y) => <option key={y}>{x}</option>)}</select>;
Posted by: Guest on January-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language