mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
fix(examples/tuono-tutorial): use pokemon name as key instead of index (#613)
This commit is contained in:
committed by
GitHub
parent
1ba94238ed
commit
310579cf76
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user