Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 2.3 KB

File metadata and controls

44 lines (25 loc) · 2.3 KB
title Server React DOM APIs

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.


Server APIs for Web Streams {/server-apis-for-web-streams/}

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

Node.js also includes these methods for compatibility, but they are not recommended due to worse performance. Use the dedicated Node.js APIs instead.

---

Server APIs for Node.js Streams {/server-apis-for-nodejs-streams/}

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


Legacy Server APIs for non-streaming environments {/legacy-server-apis-for-non-streaming-environments/}

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

They have limited functionality compared to the streaming APIs.