Skip to content

Commit

Permalink
fix key warning (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLarky authored Dec 30, 2023
1 parent 0da45f4 commit c226dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReactApp.re
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module App = {
[@react.component]
let make = () =>
["Hello " ++ World.name ++ "!", "This is React!"]
->Belt.List.map(greeting => <h1> greeting->React.string </h1>)
->Belt.List.map(greeting => <h1 key={greeting}> greeting->React.string </h1>)
->Belt.List.toArray
->React.array;
};
Expand Down

0 comments on commit c226dea

Please sign in to comment.