Skip to content

Commit 85c9ff3

Browse files
committed
Remove mention of Server Components when explaining the use API
1 parent bff3403 commit 85c9ff3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/content/learn/reusing-logic-with-custom-hooks.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,11 +1419,9 @@ Similar to a [design system,](https://uxdesign.cc/everything-you-need-to-know-ab
14191419
14201420
#### Will React provide any built-in solution for data fetching? {/*will-react-provide-any-built-in-solution-for-data-fetching*/}
14211421
1422-
Today, with the [`use`](/reference/react/use#streaming-data-from-server-to-client) API, data can be streamed from the server to the client by passing a Promise as a prop from a [Server Component](/reference/rsc/server-components) and resolving it in a [Client Component](/reference/rsc/use-client):
1422+
Today, with the [`use`](/reference/react/use#streaming-data-from-server-to-client) API, data can be streamed from the server to the client by passing a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) as a prop:
14231423
14241424
```js {3,6,13}
1425-
"use client";
1426-
14271425
import { use, Suspense } from "react";
14281426

14291427
function Message({ messagePromise }) {

0 commit comments

Comments
 (0)