Static React DOM APIsLink for this heading
January 6, 2025 · View on GitHub
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 StreamsLink for 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:
prerenderrenders a React tree to static HTML with a Readable Web Stream.
Static APIs for Node.js StreamsLink for Static APIs for Node.js Streams
These methods are only available in the environments with Node.js Streams:
prerenderToNodeStreamrenders a React tree to static HTML with a Node.js Stream.
Copyright © Meta Platforms, Inc
no uwu plz
uwu?
Logo by@sawaratsuki1004
More
On this page
Search⌘CtrlK
-
react@19
- Overview
- Hooks
- Components
- APIs
-
react-dom@19
- Hooks
- Components
- APIs
- Client APIs
- Server APIs
- Static APIs
-
Rules of React
- Overview
-
React Server Components
- Server Components
- Server Functions
- Directives
-
Legacy APIs
- Legacy React APIs
Is this page useful?