add

Two children with the same key in React [duplicate]

ε祈祈猫儿з 提交于 2020-07-20 06:57:09
问题 This question already has answers here : React Warning: flattenChildren(…): Encountered two children with the same key (3 answers) Closed 2 years ago . Application works, my classes really adds a new element but I see below warning in console! Warning: Encountered two children with the same key, [object Object] . 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

Two children with the same key in React [duplicate]

回眸只為那壹抹淺笑 提交于 2020-07-20 06:56:13
问题 This question already has answers here : React Warning: flattenChildren(…): Encountered two children with the same key (3 answers) Closed 2 years ago . Application works, my classes really adds a new element but I see below warning in console! Warning: Encountered two children with the same key, [object Object] . 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