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:
parent
61ea8efe42
commit
632c9860e0
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ function Blog({ posts }) {
|
|||
return (
|
||||
<ul>
|
||||
{posts.map((post) => (
|
||||
<li>{post.title}</li>
|
||||
<li key={post.id}>{post.title}</li>
|
||||
))}
|
||||
</ul>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue