rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
8 lines (7 loc) • 312 B
TypeScript
import { FC, ReactElement } from "react";
import { DocumentProps } from "../lib/router";
export interface RenderToStringOptions {
Document?: FC<DocumentProps>;
injectRSCPayload?: boolean;
}
export declare const renderToString: (element: ReactElement, options?: RenderToStringOptions) => Promise<string>;