You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/reference/react/use.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: use
4
4
5
5
<Intro>
6
6
7
-
`use` is a React API that lets you read the value of a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) or [context](/learn/passing-data-deeply-with-context). You can also call `use` with the opaque value returned by [`browser`](/reference/react-dom/browser) to mark a component as browser-only during server rendering.
7
+
`use` is a React API that lets you read a resource during rendering, such as a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) or [context](/learn/passing-data-deeply-with-context).
8
8
9
9
```js
10
10
constvalue=use(resource);
@@ -100,7 +100,7 @@ During server rendering, the component calling `use(browser())` suspends and Rea
100
100
101
101
#### Parameters {/*browser-parameters*/}
102
102
103
-
* `browserValue`: The opaque value returned by [`browser`](/reference/react-dom/browser).
103
+
* `browserValue`: The value returned by [`browser`](/reference/react-dom/browser).
0 commit comments