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:
Benjamin Elo
2019-08-05 09:34:45 -07:00
committed by Facebook Github Bot
parent c45724a767
commit 5aadbde4b9
2 changed files with 3 additions and 1 deletions

View File

@@ -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={() => {