@muban/muban
Version:
Writing components for server-rendered HTML
4 lines (3 loc) • 343 B
TypeScript
import type { ComponentApi, ComponentFactory } from '../Component.types';
import type { App } from '../api/apiCreateApp';
export declare function mount<P extends Record<string, unknown>>(app: App, component: ComponentFactory, container: HTMLElement | null, template?: (props: P) => string | Array<string>, data?: P): ComponentApi | undefined;