Skip to content

Commit

Permalink
docs(tutorial): correct api fetching example (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalexiei authored Jan 28, 2025
1 parent b6fa448 commit c0aa707
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ export default function IndexPage({
</div>
</div>
<ul style={{ flexWrap: 'wrap', display: 'flex', gap: 10 }}>
{data.results.map((pokemon) => {
return pokemon.name
})}
{data.results.map((pokemon, i) => (
<li key={`${pokemon.name}-${i}`}>{pokemon.name}</li>
))}
</ul>
</>
)
Expand Down

0 comments on commit c0aa707

Please sign in to comment.