Fix intro of prerenderToNodeStream (#7356)

This commit is contained in:
Soichiro Miki
2024-12-17 00:59:51 +09:00
committed by GitHub
parent bc93f0578d
commit 07eca83777

View File

@@ -4,7 +4,7 @@ title: prerenderToNodeStream
<Intro>
`prerender` renders a React tree to a static HTML string using a [Node.js Stream.](https://nodejs.org/api/stream.html).
`prerenderToNodeStream` renders a React tree to a static HTML string using a [Node.js Stream.](https://nodejs.org/api/stream.html).
```js
const {prelude} = await prerenderToNodeStream(reactNode, options?)
@@ -292,4 +292,4 @@ Suspense-enabled data fetching without the use of an opinionated framework is no
The `prerenderToNodeStream` response waits for the entire app to finish rendering, including waiting for all suspense boundaries to resolve, before resolving. It is designed for static site generation (SSG) ahead of time and does not support streaming more content as it loads.
To stream content as it loads, use a streaming server render API like [renderToPipeableStream](/reference/react-dom/server/renderToPipeableStream).