Skip to content

Commit

Permalink
Fix app/ui/posts.tsx in getting started docs
Browse files Browse the repository at this point in the history
  • Loading branch information
k15a authored Jan 10, 2025
1 parent ae431f2 commit c22a49f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ export default function Posts({
}: {
posts: Promise<{ id: string; title: string }[]>
}) {
const posts = use(posts)
const allPosts = use(posts)

return (
<ul>
{posts.map((post) => (
{allPosts.map((post) => (
<li key={post.id}>{post.title}</li>
))}
</ul>
Expand Down

0 comments on commit c22a49f

Please sign in to comment.