We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454acc3 commit d8d892fCopy full SHA for d8d892f
src/components/Chart.tsx
@@ -10,7 +10,9 @@ type Props = {
10
function Hearts({ num }: { num: number }) {
11
const hearts = [];
12
for (let i = 0; i < num; i++) {
13
- hearts.push(<FaHeart className="inline mx-0.5" size={16} />);
+ hearts.push(
14
+ <FaHeart key={i} className="inline mx-0.5" size={16} />
15
+ );
16
}
17
return <>{hearts}</>;
18
0 commit comments