mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 21:02:45 -07:00
docs(tutorial): correct api fetching example (#447)
This commit is contained in:
committed by
GitHub
parent
b6fa448202
commit
c0aa707315
@@ -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>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user