Build a shell with a mount/unmount contract, a route registry, a typed event bus, and failure isolation.
What you'll build
A shell app that mounts two micro-frontends, routes between them, passes events, and survives one of them crashing.
Micro-frontends let independent teams build, test, and deploy parts of one product separately. The hard part isn't loading code. It's the contracts between the pieces.
You'll build a shell (host app) that:
mount(element, props) returns an unmount() function.In production, remotes come from separate bundles (Module Federation, import maps, or plain import() of a URL). Here they're defined in the same file so you can see everything at once, but they only interact through the contract, exactly as separately deployed code would.
Ownership: the shell team owns routing, layout, auth, and the contract. Each product team owns its remote.