Y
Hacker News
new
|
ask
|
show
|
jobs
by
rednotebook
3249 days ago
better yet - don't create functions, especially inside a loop, in your render function,
getItem = i => <Item item={i}/>
...
<List> {items.map(getItem)} </List>