buttons = buttons.map(function(assetf,index){
return(
assetf.map(function(asset, index){
return(
<select class="btn btn-info dropdown-toggle" id=asset._id>
)
}
)
}
So basicly I want to set the id of the select tag to the _id variable in the passed asset object. How can I do this?
Thanks, Ed.
使用大括号。
<select class="btn btn-info dropdown-toggle" id={asset._id}>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.