UNPKG

piral-react

Version:

Plugin for integrating React 16+ components in Piral.

6 lines (5 loc) 333 B
import type { BaseComponentProps } from 'piral-core'; import { ComponentType } from 'react'; export declare const anyPropType: () => any; export declare function mountReact<T extends BaseComponentProps>(el: HTMLElement, root: ComponentType<T>, props: T, ctx?: any): void; export declare function unmountReact(el: HTMLElement): void;