使用antd的Table组件时,console面板经常会出现一些warning,虽然不影响使用,但这对于强迫症者来说这是无法容忍。目前遇到的warning有以下几个:
⑴设置了rowKey属性,但所指定字段的值不是唯一的
Warning: Each child in an array or iterator should have a unique "key" prop.
⑵未设置rowKey属性,不过设置……
在使用react框架开发时,经常遇到一些问题,在此记录一下。
1.浏览器console面板经常提示以下警告
Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of&n……