ReactDOMServer: renderToStaticNodeStream()

renderToStaticNodeStream()

This is useful if you want to use React as a simple static page generator, as stripping away the extra attributes can save some bytes.

ReactDOMServer.renderToStaticNodeStream(element)

Similar to renderToNodeStream, except this doesn’t create extra DOM attributes that React uses internally, such as data-reactroot.

Related concepts

renderToStaticNodeStream()

ReactDOMServer: renderToStaticNodeStream() — Structure map

Clickable & Draggable!

ReactDOMServer: renderToStaticNodeStream() — Related pages: