Browse Source

Consistency naming tweaks

main
Dan Abramov 2 years ago
parent
commit
e3429656ae
  1. 6
      beta/src/content/apis/react-dom/server/renderToNodeStream.md
  2. 6
      beta/src/content/apis/react-dom/server/renderToStaticMarkup.md
  3. 6
      beta/src/content/apis/react-dom/server/renderToStaticNodeStream.md
  4. 6
      beta/src/content/apis/react-dom/server/renderToString.md

6
beta/src/content/apis/react-dom/server/renderToNodeStream.md

@ -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(<App />)
const stream = renderToNodeStream(reactNode)
```
</Intro>
@ -48,7 +48,7 @@ The stream will produce the initial non-interactive HTML output of your React co
## Reference {/*reference*/}
### `renderToNodeStream(element)` {/*rendertonodestream*/}
### `renderToNodeStream(reactNode)` {/*rendertonodestream*/}
<Deprecated>
@ -67,7 +67,7 @@ On the client, call [`hydrateRoot`](/apis/react-dom/client/hydrateRoot) to make
#### Parameters {/*parameters*/}
* `element`: A React element you want to render to HTML. For example, a JSX element like `<App />`.
* `reactNode`: A React node you want to render to HTML. For example, a JSX element like `<App />`.
#### Returns {/*returns*/}

6
beta/src/content/apis/react-dom/server/renderToStaticMarkup.md

@ -7,7 +7,7 @@ title: renderToStaticMarkup
`renderToStaticMarkup` renders a non-interactive React tree to an HTML string.
```js
const html = renderToStaticMarkup(<Page />)
const html = renderToStaticMarkup(reactNode)
```
</Intro>
@ -44,7 +44,7 @@ Interactive apps should use [`renderToString`](/apis/react-dom/server/renderToSt
## Reference {/*reference*/}
### `renderToStaticMarkup(node)` {/*rendertostaticmarkup*/}
### `renderToStaticMarkup(reactNode)` {/*rendertostaticmarkup*/}
On the server, call `renderToStaticMarkup` to render your app to HTML.
@ -56,7 +56,7 @@ It will produce non-interactive HTML output of your React components.
#### Parameters {/*parameters*/}
* `node`: A React node you want to render to HTML. For example, a JSX node like `<Page />`.
* `reactNode`: A React node you want to render to HTML. For example, a JSX node like `<Page />`.
#### Returns {/*returns*/}

6
beta/src/content/apis/react-dom/server/renderToStaticNodeStream.md

@ -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(<Page />)
const stream = renderToStaticNodeStream(reactNode)
```
</Intro>
@ -44,7 +44,7 @@ Interactive apps should use [`renderToPipeableStream`](/apis/react-dom/server/re
## Reference {/*reference*/}
### `renderToStaticNodeStream(element)` {/*rendertostaticnodestream*/}
### `renderToStaticNodeStream(reactNode)` {/*rendertostaticnodestream*/}
On the server, call `renderToStaticNodeStream` to get a [Node.js Readable stream](https://nodejs.org/api/stream.html#readable-streams).
@ -57,7 +57,7 @@ The stream will produce non-interactive HTML output of your React components.
#### Parameters {/*parameters*/}
* `element`: A React element you want to render to HTML. For example, a JSX element like `<Page />`.
* `reactNode`: A React node you want to render to HTML. For example, a JSX element like `<Page />`.
#### Returns {/*returns*/}

6
beta/src/content/apis/react-dom/server/renderToString.md

@ -13,7 +13,7 @@ title: renderToString
`renderToString` renders a React tree to an HTML string.
```js
const html = renderToString(<App />)
const html = renderToString(reactNode)
```
</Intro>
@ -95,7 +95,7 @@ The [`flushSync`](/apis/react-dom/flushSync) call is necessary so that the DOM i
## Reference {/*reference*/}
### `renderToString(node)` {/*rendertostring*/}
### `renderToString(reactNode)` {/*rendertostring*/}
On the server, call `renderToString` to render your app to HTML.
@ -107,7 +107,7 @@ On the client, call [`hydrateRoot`](/apis/react-dom/client/hydrateRoot) to make
#### Parameters {/*parameters*/}
* `node`: A React node you want to render to HTML. For example, a JSX node like `<App />`.
* `reactNode`: A React node you want to render to HTML. For example, a JSX node like `<App />`.
#### Returns {/*returns*/}

Loading…
Cancel
Save