UNPKG

rwsdk

Version:

Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime

8 lines (7 loc) 312 B
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>;