Server React DOM APIsLink for this heading

January 6, 2025 · View on GitHub

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 may call them for you. Most of your components don’t need to import or use them.


These methods are only available in the environments with Node.js Streams:


These methods are only available in the environments with Web Streams, which includes browsers, Deno, and some modern edge runtimes:


These methods can be used in the environments that don’t support streams:

They have limited functionality compared to the streaming APIs.

PrevioushydrateRoot

NextrenderToPipeableStream


Copyright © Meta Platforms, Inc

no uwu plz

uwu?

Logo by@sawaratsuki1004

Learn React

Quick Start

Installation

Describing the UI

Adding Interactivity

Managing State

Escape Hatches

API Reference

React APIs

React DOM APIs

Community

Code of Conduct

Meet the Team

Docs Contributors

Acknowledgements

More

Blog

React Native

Privacy

Terms

On this page


React

v19

Search⌘CtrlK

Learn

Reference

Community

Blog

Is this page useful?

API Reference