1{this.props.categories((items , index)=>{
2 <option key{index}>{items.categoryName} </option>
3})}
1{this.props.categories.map((items , index)=>{
2 <option key{index}>{items.categoryName} </option>
3})}
1{this.props.categories.map((items , index)=>{
2 <option key{index}>{items.categoryName} </option>
3})}
4//// created by Aqdas
1var Answer = props =>
2 <select>{props.data.map((x,y) => <option key={y}>{x}</option>)}</select>;
3