UNPKG

react-torch

Version:

A lib to server-side render with react.

21 lines (20 loc) 655 B
import type { Context, PreloadType, ScriptPreload, StylePreload } from '../../index'; import type { ReactElement } from 'react'; export declare type DocumentProps = { dir: string; title: string; context: Context; container: string; element: ReactElement; cdn: string; assets: { vendor: string; index: string; }; state: object; mode: PreloadType; styles?: StylePreload[]; scripts?: ScriptPreload[]; stateList: any[]; }; export default function createDocument({ dir, title, context, container, element, cdn, assets, state, mode, styles, scripts, stateList, }: DocumentProps): JSX.Element;