Skip to content

Commit b72f656

Browse files
committed
Address review comments
1 parent a3c5c70 commit b72f656

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/content/reference/react

src/content/reference/react/use.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ root.render(
11131113
11141114
#### Should I resolve a Promise in a Server or Client Component? {/*resolve-promise-in-server-or-client-component*/}
11151115
1116-
If you have a Promise, at some point you need to unwrap it to read its value. You unwrap it with `await` on the server, and with `use` on the client.
1116+
If you have a Promise, at some point you need to unwrap it to read its value. You unwrap it with `await` in a Server Component, and with `use` in a Client Component.
11171117
11181118
Usually, the simplest option is to `await` the Promise where you create it. The Server Component suspends until the data is ready, and everything below it waits too:
11191119
@@ -1154,6 +1154,7 @@ Or, in a separate file, a Client Component can unwrap the same Promise with `use
11541154
```js
11551155
// Client Component
11561156
'use client';
1157+
11571158
import { use } from 'react';
11581159

11591160
export function Message({ messagePromise }) {

0 commit comments

Comments
 (0)