Skip to content

Commit

Permalink
Update use.md
Browse files Browse the repository at this point in the history
  • Loading branch information
telmen authored Nov 17, 2023
1 parent 4f9e9a5 commit af7c761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ When passing a Promise from a Server Component to a Client Component, its resolv
A Promise can be passed from a Server Component to a Client Component and resolved in the Client Component with the `use` Hook. You can also resolve the Promise in a Server Component with `await` and pass the required data to the Client Component as a prop.
```js
export default function App() {
export default async function App() {
const messageContent = await fetchMessage();
return <Message messageContent={messageContent} />
}
Expand Down

0 comments on commit af7c761

Please sign in to comment.