0
有OrderedMap immutablejs對象:immutableJS +陣營獲取迭代的關鍵,同時映射
{
"country": {
"value": "US",
"locked": false,
"history": null
},
"city": {
"value": "NY",
"locked": false,
"history": [
{
"value": "LA",
"date": 1447366980
},
{
"value": "WA",
"date": 1447331640
}
]
},
"event_title": {
"value": "some text",
"locked": false,
"history": null
},
"place": {
"value":"some text",
"locked": false,
"history":null
}
}
需要映射它反應的組分:
const fields = res.map(item => <Field name={%KEY_NEED_HERE%} rest={item} handleChange={this.handleChange} />)
如何獲得的迭代密鑰並將其發送到Field的名字? Somethng像
<Field name={city} rest={item} />
PLZ,幫助