fix(examples/tuono-tutorial): use pokemon name as key instead of index (#613)

This commit is contained in:
Marco Pasqualetti
2025-02-28 14:17:26 +01:00
committed by GitHub
parent 1ba94238ed
commit 310579cf76
+1 -1
View File
@@ -46,7 +46,7 @@ export default function IndexPage({
<PokemonLink name="GOAT" id={0} />
{data.results.map((pokemon, i) => (
<PokemonLink key={i + 1} name={pokemon.name} id={i + 1} />
<PokemonLink key={pokemon.name} name={pokemon.name} id={i + 1} />
))}
</ul>
</>