UNPKG

@memberjunction/react-runtime

Version:

Platform-agnostic React component runtime for MemberJunction. Provides core compilation, registry, and execution capabilities for React components in any JavaScript environment.

26 lines 904 B
export interface ManagedReactRoot { id: string; root: any; container: HTMLElement; isRendering: boolean; lastRenderTime?: Date; componentId?: string; } export declare class ReactRootManager { private roots; private renderingRoots; private unmountQueue; createRoot(container: HTMLElement, createRootFn: (container: HTMLElement) => any, componentId?: string): string; render(rootId: string, element: any, onComplete?: () => void): void; unmountRoot(rootId: string, force?: boolean): Promise<void>; unmountComponentRoots(componentId: string): Promise<void>; isRendering(rootId: string): boolean; getStats(): { totalRoots: number; renderingRoots: number; pendingUnmounts: number; }; cleanup(): Promise<void>; } export declare const reactRootManager: ReactRootManager; //# sourceMappingURL=react-root-manager.d.ts.map