Migration

renderToStaticNodeStream migration

React 19 removes this non-interactive streaming API. For a small non-interactive report, renderToStaticMarkup is a possible replacement if buffering the whole document is acceptable. It produces a string, not a stream, and cannot be hydrated. For larger reports choose and test a different rendering strategy instead of assuming identical streaming behavior.

Formal Syntax & Structure

react syntaxreact
renderToStaticMarkup(element)

Working Example

Example Snippetreact
import {renderToStaticMarkup} from 'react-dom/server';export function reportHtml() { return renderToStaticMarkup(<article><h1>Tool report</h1><p>3 available</p></article>); }
React Reference