storybook-eol/react-treebeard

Warning: Each child in a list have a unique key prop warning

naskarsubhajit opened this issue · 1 comments

Screen Shot 2019-05-08 at 6 13 22 PM

It looks that TreeNode component already has implementation like below:
return (


    {children.map((child, index) => (
    <TreeNode
    {...{onToggle, animations, style}}
    decorators={propDecorators}
    key={child.id || index}
    node={child}
    />
    ))}

still why it gives this warning

This is a problem of the TreeBeard, not of TreeNode.
QQ截图20190524092934