Dan Abramov 2 years ago
parent
commit
e6587b3cb3
  1. 4
      beta/src/content/apis/react-dom/server/renderToPipeableStream.md

4
beta/src/content/apis/react-dom/server/renderToPipeableStream.md

@ -7,7 +7,7 @@ title: renderToPipeableStream
`renderToPipeableStream` renders a React tree to a pipeable [Node.js Stream.](https://nodejs.org/api/stream.html)
```js
const stream = renderToPipeableStream(reactNode, options)
const { pipe, abort } = renderToPipeableStream(reactNode, options?)
```
</Intro>
@ -534,7 +534,7 @@ React will flush the remaining loading fallbacks as HTML, and will attempt to re
## Reference {/*reference*/}
### `renderToPipeableStream` {/*rendertopipeablestream*/}
### `renderToPipeableStream(reactNode, options)` {/*rendertopipeablestream*/}
Call `renderToPipeableStream` to render your React tree as HTML into a [Node.js Stream.](https://nodejs.org/api/stream.html#writable-streams)

Loading…
Cancel
Save