【发布时间】:2018-10-06 08:05:14
【问题描述】:
我正在使用 nivo 线组件来绘制堆叠线图。我收到此错误:
Warning: Encountered two children with the same key, `L1.87.83999837239584`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version
它在谈论什么钥匙和孩子?图上的每个数据点是否有可能是一个不同的 React 元素,它是某个集合的一部分,并且必须在“反应意义上”被唯一标识?
【问题讨论】:
标签: nivo-slider