From 3ee468b521fe092b15c713fd44399c14ac84230b Mon Sep 17 00:00:00 2001 From: Jamie Kyle Date: Tue, 16 Jan 2024 12:13:52 -0800 Subject: [PATCH] Fix async-await syntax --- src/content/reference/react/use.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/use.md b/src/content/reference/react/use.md index 1cf73b7b135..92b3cabc0b1 100644 --- a/src/content/reference/react/use.md +++ b/src/content/reference/react/use.md @@ -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 }