0% found this document useful (0 votes)
6 views

Static React DOM APIs – React

The document provides an overview of the Static React DOM APIs in React v19, which allow for generating static HTML from React components. It highlights the availability of these APIs in environments with Web Streams and Node.js Streams, specifically mentioning the 'prerender' and 'prerenderToNodeStream' methods. The document emphasizes that most components do not require direct use of these APIs.

Uploaded by

dungeon.dad87
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Static React DOM APIs – React

The document provides an overview of the Static React DOM APIs in React v19, which allow for generating static HTML from React components. It highlights the availability of these APIs in environments with Web Streams and Node.js Streams, specifically mentioning the 'prerender' and 'prerenderToNodeStream' methods. The document emphasizes that most components do not require direct use of these APIs.

Uploaded by

dungeon.dad87
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

20/02/2025, 19:18 Static React DOM APIs – React

v19

API REFERENCE

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


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

prerender renders a React tree to static HTML with a Readable Web


Stream.

Static APIs for Node.js Streams


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

prerenderToNodeStream renders a React tree to static HTML with a


Node.js Stream.

https://react.dev/reference/react-dom/static 1/2
20/02/2025, 19:18 Static React DOM APIs – React

PREVIOUS

renderToString

NEXT

prerender

Copyright © Meta Platforms, Inc

uwu?

Learn React API Reference

Quick Start React APIs

Installation React DOM APIs

Describing the UI

Adding Interactivity

Managing State

Escape Hatches

Community More

Code of Conduct Blog

Meet the Team React Native

Docs Contributors Privacy

Acknowledgements Terms

https://react.dev/reference/react-dom/static 2/2

You might also like