docs(isr): add missing key prop in jsx loop (#33984)

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`
This commit is contained in:
Vincent Voyer 2022-02-04 15:15:56 +01:00 committed by GitHub
parent 61ea8efe42
commit 632c9860e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ function Blog({ posts }) {
return (
<ul>
{posts.map((post) => (
<li>{post.title}</li>
<li key={post.id}>{post.title}</li>
))}
</ul>
)