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

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

🌾A progressive http server for Deno🌾
Latest
function renderToNodeStream
import { renderToNodeStream } from "https://deno.land/x/servest@v1.3.4/types/react-dom/server/index.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