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)
|
.fill(true)
|
||||||
.map<Element<*>>((_, index) => (
|
.map<Element<*>>((_, index) => (
|
||||||
<div
|
<div
|
||||||
|
key={index}
|
||||||
role="button"
|
role="button"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
onMouseEnter={() => {
|
onMouseEnter={() => {
|
||||||
|
|||||||
@@ -67,8 +67,9 @@ export default (props: Props) => {
|
|||||||
<BookmarksList>
|
<BookmarksList>
|
||||||
{[...bookmarks.values()]
|
{[...bookmarks.values()]
|
||||||
.sort(alphabetizeBookmarkCompare)
|
.sort(alphabetizeBookmarkCompare)
|
||||||
.map(bookmark => (
|
.map((bookmark, idx) => (
|
||||||
<div
|
<div
|
||||||
|
key={idx}
|
||||||
className="bookmark-container"
|
className="bookmark-container"
|
||||||
role="button"
|
role="button"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
|
|||||||
Reference in New Issue
Block a user