react warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `xxxxxx`. 原理及解决方法

react里面对于数组的map 必须传入俩个参数“xxxxx".map(function(object,i){

    //自己的代码;

});

数组位会帮助react更好的去解析数组,并且与节点建立联系。

posted on 2016-04-21 16:26  smallTao  阅读(1873)  评论(0编辑  收藏  举报