Skip to main content
Deno 2 is finally here 🎉️
Learn more
function renderToNodeStream
import { renderToNodeStream } from "https://deno.land/x/react_deno@17.0.2/src/react_dom_server.d.ts";

Render a React element to its initial HTML. Returns a Readable stream that outputs an HTML string. The HTML output by this stream is exactly equal to what ReactDOMServer.renderToString() would return.

Returns

NodeJS.ReadableStream