Skip to content

bootstrap

function bootstrap<App, Surface>(config): Promise<void>;

The app entrypoint. Detects whether this load is a top-level app or an embedded surface, performs the right handshake (with a standalone fallback when there is no shell), resolves the matching component loader, and hands the connected client to the caller’s mount callback. This is what most apps call from main.ts.

App

Surface

BootstrapConfig<App, Surface>

The bootstrap configuration. See BootstrapConfig.

Promise<void>