📌  相关文章
📜  键作为道具反应传递 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:25.333000             🧑  作者: Mango

代码示例1
/* 
The 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. 
It allows React to associate the elements of the previous tree with the elements of the next tree.
It'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:

*/