Skip to content
← Back to the bridge

CASE FILE / 2025INDEPENDENT BUILD

Micro Frontend

One shell, nine React apps deployed on their own and loaded at runtime with Module Federation

Solo build2025Complete demo; public repositories
Micro Frontend runtime console: a remotes panel with each of the nine apps, its deployed commit and load time, an event bus line logging a favourite, and the Animals remote rendering a breed atlas in a framed viewport
Micro Frontend runtime console: a remotes panel with each of the nine apps, its deployed commit and load time, an event bus line logging a favourite, and the Animals remote rendering a breed atlas in a framed viewport

Overview

A container application that orchestrates nine independent micro-frontends with Webpack Module Federation. Each child app (animals, artwork, books, cuisines, movies, news, photos, pokemon, quotes) is built, deployed and versioned on its own Vercel project. The host shell loads remotes at runtime, shares React, ReactDOM and Tailwind as singletons, and only fetches the app you open. CRACO drives the Module Federation plugin config.

The problem

Module Federation is easy to demo and hard to run: version skew between shell and remotes, duplicated React copies, and remotes that break the shell when they go down.

Outcome

Shell and all nine remotes live on Vercel, each with its own source and deployment.

Architecture

remoteEntry.jsBrowserpays for the shell firstHost shellloads remotes on openShared singletonsReact · ReactDOM · TailwindNine remotes, own repo + Vercel project eachanimalsartworkbookscuisinesmoviesnewsphotospokemonquotes
Micro Frontend: one shell, nine independently deployed remotes

Key decisions

  • Singletons for the runtime. React, ReactDOM and Tailwind are shared as singletons so every remote renders in the same tree and the shell never ships two Reacts.
  • One deploy per app. Each remote lives in its own repository and Vercel project, so a child can ship on its own schedule without a shell release.
  • Load on open, not on boot. Remotes are resolved when their tab is opened, so the first paint only pays for the shell.

What it does

  • Nine independent micro-frontends loaded at runtime; only the app you open is fetched
  • Shared singletons for React, ReactDOM and Tailwind across shell and remotes
  • Each child deployed and versioned independently on its own Vercel project
  • CRACO-based config override on a production-ready build

Technology

React 19Module FederationWebpackCRACOTailwind CSSAnt Design

Current status

Complete demo; public repositories.