select the items from selectors in .map reactjs
{this.props.categories((items , index)=>{
<option key{index}>{items.categoryName} </option>
})}{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 Aqdasvar Answer = props =>
<select>{props.data.map((x,y) => <option key={y}>{x}</option>)}</select>;
Also in JavaScript:
- locak storage for table\ js
- random numbers javascript
- deploy angular app on google app engine
- passportjs mac req.user not saved
- call js script in html
- js ternary
- js navigate to another page
- javascript format date time
- w3schools angular
- does onclick work for textboxes javascript
- clear input field jquery
- Queue Events don't trigger with BullMQ using Heroku Redis
- currentTime(); javascript
- find div height in javascript
- electron file association
- nestjs cors origin
- how to use session using javascript
- how to delete element at a particular index of array in react js
- convert integer month to string month react native
- access angular app outside localhost
- how to display current date and time in angular
- how to print an array in javascript
- jquery view image in codeigniter
- ./node_modules/browserify-zlib/lib/index.js