UNPKG

@umajs/plugin-react-ssr

Version:

In umajs, React is used to develop the plug-in of SPA and MPA, which supports server-side rendering and client-side rendering

30 lines (29 loc) 840 B
import { TPlugin, Result as R } from '@umajs/core'; interface TviewOptions { ssr?: boolean; cache?: boolean; useEngine?: boolean; baseName?: string; layout?: boolean; } export interface TssrPluginOptions extends TviewOptions { rootDir?: string; rootNode?: string; defaultRouter?: boolean; prefixCDN?: string; prefixRouter?: string; } export declare class Result<T> extends R<T> { static reactView(viewName: string, initProps?: any, options?: TviewOptions): Result<{ viewName: string; initProps: any; options: TviewOptions; }>; static react(viewName: string, initProps?: any, options?: TviewOptions): Result<{ viewName: string; initProps: any; options: TviewOptions; }>; } declare const _default: () => TPlugin; export default _default;