I am using BlueprintJS UI components for my ReactJS webapp. I want to get rid of the warning when using the Tree component to render a file explorer:
Each child in an array or iterator should have a unique "key" prop. Check the render method of "Tree"
In the documentation of the Tree component I can find a key
attribute which might be the thing I am looking for, but I can't get the warning away.
node: [
{
hasCaret: true,
iconName: "folder-close",
label: "Folder 0",
key: '1e'
}
]
Eveb this simple structure for the tree gives the warning to me. Any suggestions?