showing results for - "key being passed as prop react"
Janette
16 Jan 2017
1/* 
2The key prop has a special meaning in React. It it is not passed to the component as prop but is used by React to aid the reconciliation of collections. 
3It allows React to associate the elements of the previous tree with the elements of the next tree.
4It's good that you have a key (and you need one if you pass an array of elements), but if you want to pass that value along to the component, you should another prop:
5
6*/
7<FeedItem key={item.key} id={item.key} ... />