content: [API Reference](https://react.dev/reference/react)
  
  # Server React DOM APIs[Link for this heading]()
  
  The `react-dom/server` APIs let you server-side render React components to HTML. These APIs are only used on the server at the top level of your app to generate the initial HTML. A [framework](https://react.dev/learn/start-a-new-react-project) may call them for you. Most of your components don’t need to import or use them.
  
  * * *
  
  ## Server APIs for Node.js Streams[Link for Server APIs for Node.js Streams]()
  
  These methods are only available in the environments with [Node.js Streams:](https://nodejs.org/api/stream.html)
  
  - [`renderToPipeableStream`](https://react.dev/reference/react-dom/server/renderToPipeableStream) renders a React tree to a pipeable [Node.js Stream.](https://nodejs.org/api/stream.html)
  
  * * *
  
  ## Server APIs for Web Streams[Link for Server APIs for Web Streams]()
  
  These methods are only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API), which includes browsers, Deno, and some modern edge runtimes:
  
  - [`renderToReadableStream`](https://react.dev/reference/react-dom/server/renderToReadableStream) renders a React tree to a [Readable Web Stream.](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)
  
  * * *
  
  ## Legacy Server APIs for non-streaming environments[Link for Legacy Server APIs for non-streaming environments]()
  
  These methods can be used in the environments that don’t support streams:
  
  - [`renderToString`](https://react.dev/reference/react-dom/server/renderToString) renders a React tree to a string.
  - [`renderToStaticMarkup`](https://react.dev/reference/react-dom/server/renderToStaticMarkup) renders a non-interactive React tree to a string.
  
  They have limited functionality compared to the streaming APIs.
  
  [PrevioushydrateRoot](https://react.dev/reference/react-dom/client/hydrateRoot)
  
  [NextrenderToPipeableStream](https://react.dev/reference/react-dom/server/renderToPipeableStream)