Skip to content

Commit 5959004

Browse files
committed
doc: fix identifierPrefix option
1 parent 81423ba commit 5959004

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

src/content/reference/react-dom/server/renderToNodeStream.md

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to
4343

4444
* `reactNode`: A React node you want to render to HTML. For example, a JSX element like `<App />`.
4545

46+
* **optional** `options`: An object for server render.
47+
* **optional** `identifierPrefix`: A string prefix React uses for IDs generated by [`useId`.](/reference/react/useId) Useful to avoid conflicts when using multiple roots on the same page. Must be the same prefix as passed to [`hydrateRoot`.](/reference/react-dom/client/hydrateRoot#parameters)
48+
4649
#### Returns {/*returns*/}
4750

4851
A [Node.js Readable Stream](https://nodejs.org/api/stream.html#readable-streams) that outputs an HTML string.

src/content/reference/react-dom/server/renderToStaticMarkup.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ It will produce non-interactive HTML output of your React components.
3535
#### Parameters {/*parameters*/}
3636

3737
* `reactNode`: A React node you want to render to HTML. For example, a JSX node like `<Page />`.
38+
* **optional** `options`: An object for server render.
39+
* **optional** `identifierPrefix`: A string prefix React uses for IDs generated by [`useId`.](/reference/react/useId) Useful to avoid conflicts when using multiple roots on the same page. Must be the same prefix as passed to [`hydrateRoot`.](/reference/react-dom/client/hydrateRoot#parameters)
3840

3941
#### Returns {/*returns*/}
4042

src/content/reference/react-dom/server/renderToStaticNodeStream.md

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ The stream will produce non-interactive HTML output of your React components.
3737

3838
* `reactNode`: A React node you want to render to HTML. For example, a JSX element like `<Page />`.
3939

40+
* **optional** `options`: An object for server render.
41+
* **optional** `identifierPrefix`: A string prefix React uses for IDs generated by [`useId`.](/reference/react/useId) Useful to avoid conflicts when using multiple roots on the same page. Must be the same prefix as passed to [`hydrateRoot`.](/reference/react-dom/client/hydrateRoot#parameters)
42+
4043
#### Returns {/*returns*/}
4144

4245
A [Node.js Readable Stream](https://nodejs.org/api/stream.html#readable-streams) that outputs an HTML string. The resulting HTML can't be hydrated on the client.

src/content/reference/react-dom/server/renderToString.md

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ On the client, call [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) to
4242

4343
* `reactNode`: A React node you want to render to HTML. For example, a JSX node like `<App />`.
4444

45+
* **optional** `options`: An object for server render.
46+
* **optional** `identifierPrefix`: A string prefix React uses for IDs generated by [`useId`.](/reference/react/useId) Useful to avoid conflicts when using multiple roots on the same page. Must be the same prefix as passed to [`hydrateRoot`.](/reference/react-dom/client/hydrateRoot#parameters)
47+
4548
#### Returns {/*returns*/}
4649

4750
An HTML string.

0 commit comments

Comments
 (0)