Thereact-dom/static APIs let you generate static HTML for React components. They have limited functionality compared to the streaming APIs. Aframework 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 withWeb Streams, which includes browsers, Deno, and some modern edge runtimes:
prerenderrenders a React tree to static HTML with aReadable Web Stream.- Experimental only
resumeAndPrerendercontinues a prerendered React tree to static HTML with aReadable Web Stream.
Node.js also includes these methods for compatibility, but they are not recommended due to worse performance. Use thededicated Node.js APIs instead.
Static APIs for Node.js Streams
These methods are only available in the environments withNode.js Streams:
prerenderToNodeStreamrenders a React tree to static HTML with aNode.js Stream.- Experimental only
resumeAndPrerenderToNodeStreamcontinues a prerendered React tree to static HTML with aNode.js Stream.