Hmm, I don\'t see my omission, but I get a blank page with a console error saying:
Users.js:9 Uncaught TypeError: Cannot read property \'filter\' of undefined
I would do something like this instead which is a little more straightforward
{this.props.list.map(function (person, i) {
{return person.friend
?(- {person.name}
)
: null
}
})}
this.props.list.friend.filter
didn't work.key
s in the markup for the iterated items created. That is how React creates the relationships between components in the state tree.