# Function renderToNodeStream

- renderToNodeStream(element, options?): NodeJS.ReadableStream

- Render a React element to its initial HTML. Returns a Readable stream that outputs an HTML string. The HTML output by this stream is exactly equal to what `ReactDOMServer.renderToString()` would return.

  #### Parameters

  - element: ReactNode
  - `Optional` options: ServerOptions

  #### Returns NodeJS.ReadableStream

  #### Deprecated

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/server.d.ts:79