Post

A new React 19 feature that might have gone unnoticed: ReactDOMStatic.prerender(<App />) It's like the old renderToString API, but unlike renderToString, prerender will wait for Suspense boundaries to finish before returning the HTML.

the difference is that it only outputs the content instead of emitting a stream with the intermediate fallback states and then the content

It doesn’t have to because it waits for the content so there’s no placeholder to replace

0 reposts1 like

No replies yet.