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

x/keywork/react/mod.ts>renderJSXToStream

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
function renderJSXToStream
import { renderJSXToStream } from "https://deno.land/x/keywork@v6.2.1/react/mod.ts";

Renders the given React content to an HTML stream.

Type Parameters

optional
StaticProps extends { } | null = null

Parameters

pageElement: ReactElement<StaticProps>
optional
reactRenderOptions: ReactRendererOptions

Returns

Promise<ReactDOMServerReadableStream>