Unverified Commit f813dd4a authored by Konstantin Pschera's avatar Konstantin Pschera Committed by GitHub

Fix small bug in getting started docs (#74744)

This will fix a small bug in one of the examples in the Getting Started
docs. The examples declares a variable that's already declared in the
props which would result in an error when running this.
parent 6319dbb0
...@@ -141,11 +141,11 @@ export default function Posts({ ...@@ -141,11 +141,11 @@ export default function Posts({
}: { }: {
posts: Promise<{ id: string; title: string }[]> posts: Promise<{ id: string; title: string }[]>
}) { }) {
const posts = use(posts) const allPosts = use(posts)
return ( return (
<ul> <ul>
{posts.map((post) => ( {allPosts.map((post) => (
<li key={post.id}>{post.title}</li> <li key={post.id}>{post.title}</li>
))} ))}
</ul> </ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment