Answer the question
In order to leave comments, you need to log in
How to make variable from array.map?
Briefly:
this.data.comments.map(function(c) {
return <li>{c.text}</li>;
})
observe: function() {
return {
newEstateData: (new Parse.Query('newEstateData')).ascending('createdAt')
};
},
{this.data.newEstateData.map(function(c) {
return (
<div className="some classes">{c.columnName}</div>
// и тут создаю кнопку для роутера
<Link to="NewEstateDetails" params={{id: "Сюда нужно поместить id из array" }} className="btn-flat cyan-text fullwidth center waves-effect waves-teal">Подробнее</Link>
)
})},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question