docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Create a child-application entry that mounts safely both inside and outside a micro-frontend host, honoring host-provided routing base paths and avoiding duplicate React mounts from repeated script execution.
container element, rendering targets that container and creates or reuses an #ice-container inside it before bootstrapping the app; if no container is provided, a default #ice-container in the document body is used. @test#ice-container while still remaining compatible with later host-driven mount/unmount calls using the same root. @testimport type { ComponentType } from "react";
export interface ChildRuntime {
mount(props?: { container?: Element; basename?: string; customProps?: Record<string, unknown> }): Promise<void>;
unmount(props?: { container?: Element }): Promise<void>;
}
export function registerChildApp(App: ComponentType, options?: {
defaultBasename?: string;
defaultContainerId?: string;
customProps?: Record<string, unknown>;
}): ChildRuntime;Provides micro-frontend child rendering helpers, lifecycle wiring, and host integration safeguards.