1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

give the key props to tagList Item

This commit is contained in:
Sosuke Suzuki
2017-09-30 18:37:47 +09:00
parent bf9ecb02e5
commit 2886da4f63

View File

@@ -102,8 +102,11 @@ class SideNav extends React.Component {
})
return (
tagList.map(tag => {
return (
<TagListItem name={tag} handleClickTagButton={this.handleClickTagButton.bind(this)} />
return (<TagListItem
name={tag}
handleClickTagButton={this.handleClickTagButton.bind(this)}
key={tag}
/>
)
})
)