Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/reference/react-dom/server/renderToNodeStream.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This API will be removed in a future major version of React. Use [`renderToPipea
`renderToNodeStream` renders a React tree to a [Node.js Readable Stream.](https://nodejs.org/api/stream.html#readable-streams)

```js
const stream = renderToNodeStream(reactNode)
const stream = renderToNodeStream(reactNode, options?)
```

</Intro>
Expand All @@ -24,7 +24,7 @@ const stream = renderToNodeStream(reactNode)

## Reference {/*reference*/}

### `renderToNodeStream(reactNode)` {/*rendertonodestream*/}
### `renderToNodeStream(reactNode, options?)` {/*rendertonodestream*/}

On the server, call `renderToNodeStream` to get a [Node.js Readable Stream](https://nodejs.org/api/stream.html#readable-streams) which you can pipe into the response.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: renderToStaticMarkup
`renderToStaticMarkup` renders a non-interactive React tree to an HTML string.

```js
const html = renderToStaticMarkup(reactNode)
const html = renderToStaticMarkup(reactNode, options?)
```

</Intro>
Expand All @@ -18,7 +18,7 @@ const html = renderToStaticMarkup(reactNode)

## Reference {/*reference*/}

### `renderToStaticMarkup(reactNode)` {/*rendertostaticmarkup*/}
### `renderToStaticMarkup(reactNode, options?)` {/*rendertostaticmarkup*/}

On the server, call `renderToStaticMarkup` to render your app to HTML.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: renderToStaticNodeStream
`renderToStaticNodeStream` renders a non-interactive React tree to a [Node.js Readable Stream.](https://nodejs.org/api/stream.html#readable-streams)

```js
const stream = renderToStaticNodeStream(reactNode)
const stream = renderToStaticNodeStream(reactNode, options?)
```

</Intro>
Expand All @@ -18,7 +18,7 @@ const stream = renderToStaticNodeStream(reactNode)

## Reference {/*reference*/}

### `renderToStaticNodeStream(reactNode)` {/*rendertostaticnodestream*/}
### `renderToStaticNodeStream(reactNode, options?)` {/*rendertostaticnodestream*/}

On the server, call `renderToStaticNodeStream` to get a [Node.js Readable Stream](https://nodejs.org/api/stream.html#readable-streams).

Expand Down
4 changes: 2 additions & 2 deletions src/content/reference/react-dom/server/renderToString.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ title: renderToString
`renderToString` renders a React tree to an HTML string.

```js
const html = renderToString(reactNode)
const html = renderToString(reactNode, options?)
```

</Intro>
Expand All @@ -24,7 +24,7 @@ const html = renderToString(reactNode)

## Reference {/*reference*/}

### `renderToString(reactNode)` {/*rendertostring*/}
### `renderToString(reactNode, options?)` {/*rendertostring*/}

On the server, call `renderToString` to render your app to HTML.

Expand Down