Files
react.dev/src/content/reference/react-dom/static/index.md
Ricky aba6b86772 Docs for partial-prerendering APIs (#7869)
* Init PPR docs

* Overhaul

* Apply suggestions from code review

---------

Co-authored-by: Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
2025-10-01 13:48:16 -04:00

1.8 KiB

title
title
Static React DOM APIs

The react-dom/static APIs let you generate static HTML for React components. They have limited functionality compared to the streaming APIs. A framework may call them for you. Most of your components don't need to import or use them.


Static APIs for Web Streams {/static-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.


Static APIs for Node.js Streams {/static-apis-for-nodejs-streams/}

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