React Native unique "key&qu

2018-12-12  本文已影响17人  HowieDev

React-Native 在做map()操作的时候,需要指定map的key值,否则会报 unique "key" prop警告⚠️ 警告如下:

Warning:ExceptionsManager.js:84 Warning: Each child in an array or iterator should have a unique "key" prop.

unique "key" prop 未指定key值之前 指定key值之后
上一篇 下一篇

猜你喜欢

热点阅读