Skip to content

Commit

Permalink
docs(isr): add missing key prop in jsx loop (#33984)
Browse files Browse the repository at this point in the history
Copy pasting this example with a default create-next-app leads to an eslint warning. So I thought let's fix this.

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
  • Loading branch information
vvo committed Feb 4, 2022
1 parent 61ea8ef commit 632c986
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ function Blog({ posts }) {
return (
<ul>
{posts.map((post) => (
<li>{post.title}</li>
<li key={post.id}>{post.title}</li>
))}
</ul>
)
Expand Down

0 comments on commit 632c986

Please sign in to comment.