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.



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.