Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/servest/types/react-dom/server/index.d.ts>renderToStaticNodeStream

🌾A progressive http server for Deno🌾
Latest
function renderToStaticNodeStream
import { renderToStaticNodeStream } from "https://deno.land/x/servest@v1.3.4/types/react-dom/server/index.d.ts";

Similar to renderToNodeStream, except this doesn't create extra DOM attributes such as data-reactid, that React uses internally. The HTML output by this stream is exactly equal to what ReactDOMServer.renderToStaticMarkup() would return.

Returns

NodeJS.ReadableStream