UNPKG

ssr-hook

Version:

Server-Side Rendering hook for your React projects.

10 lines (9 loc) 368 B
import { ReactNode } from "react"; export type RenderingResult = { headers: string; root: string; data: string; lang?: string; }; export declare function render(origin: string, url: string, app: ReactNode): Promise<RenderingResult>; export declare function renderToHTML(origin: string, url: string, indexHtml: string, app: ReactNode): Promise<string>;