我正在为我的ReactJS webapp使用BlueprintJS UI组件。 我想摆脱的警告使用Tree组件来呈现一个文件浏览器时:BlueprintJS树添加键道具
Each child in an array or iterator should have a unique "key" prop. Check the render method of "Tree"
在documentation of the Tree component我能找到一个key
属性,这可能是我在寻找的东西,但我不能得到警告。
node: [ { hasCaret: true, iconName: "folder-close", label: "Folder 0", key: '1e' } ]
Eveb为树这种简单的结构赋予警告我。有什么建议么?