renderToString
Edit this pageRenders to a string synchronously. The function also generates a script tag for progressive hydration. Options include eventNames to listen to before the page loads and play back on hydration, and nonce to put on the script tag.
renderId
is used to namespace renders when having multiple top level roots.
Options
Name | Type | Description |
---|---|---|
nonce | string | The nonce to use for the script tag. |
renderId | string | The id to use for the script tag. |