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

x/jsx_stream/serialize_sw.ts>renderString

JSX runtime for server-side only async streaming
Latest
function renderString
import { renderString } from "https://deno.land/x/jsx_stream@v0.2.0/serialize_sw.ts";

renderString optimised for use in a ServiceWorker

Parameters

node: JSX.Element
optional
options: Pick<RenderOptions, "tagHandlers">

Returns

Promise<string>