Skip to content

Commit 7a15e96

Browse files
authored
Fix async-await syntax (#6554)
1 parent 6bfde58 commit 7a15e96

File tree

1 file changed

+1
-1
lines changed
  • src/content/reference/react

1 file changed

+1
-1
lines changed

src/content/reference/react/use.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ When passing a Promise from a Server Component to a Client Component, its resolv
337337
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.
338338
339339
```js
340-
export default function App() {
340+
export default async function App() {
341341
const messageContent = await fetchMessage();
342342
return <Message messageContent={messageContent} />
343343
}

0 commit comments

Comments
 (0)