Skip to main content
Module

x/keywork/mod.ts>ReactUtils.renderJSXToStream

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

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>