Added missing key props
Summary: This was an error appearing in the console that was bugging me. About how arrays of React nodes should have a key prop. Reviewed By: passy Differential Revision: D16646487 fbshipit-source-id: b61841c001eb4a93f0a071557b921ca7365e2ac3
This commit is contained in:
committed by
Facebook Github Bot
parent
c45724a767
commit
5aadbde4b9
@@ -48,6 +48,7 @@ export default class RatingButton extends Component<Props, State> {
|
||||
.fill(true)
|
||||
.map<Element<*>>((_, index) => (
|
||||
<div
|
||||
key={index}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
onMouseEnter={() => {
|
||||
|
||||
@@ -67,8 +67,9 @@ export default (props: Props) => {
|
||||
<BookmarksList>
|
||||
{[...bookmarks.values()]
|
||||
.sort(alphabetizeBookmarkCompare)
|
||||
.map(bookmark => (
|
||||
.map((bookmark, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="bookmark-container"
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
|
||||
Reference in New Issue
Block a user