Micro-frontends with React Router 6
summary
Recommends React Router 6 as the router for micro-frontends, using nested routes plus loaders and defer to fetch critical data before render, parallelize requests and show contextual errors instead of global spinners. Shows composition with Module Federation and NX, a hybrid routing approach for legacy apps, and a migration pattern (reverse-strangler). Demo loads an auth micro-frontend from a separate repository into the shell, routes cart/shop independently, and the setup works end-to-end in the demo.
AI-written summary · about
chapters (9)
- 0:00Introduction and welcome
- 3:56What are micro-frontends
- 7:30Decoupling monoliths with micro-frontends
- 9:13Composition models for micro-frontends
- 10:14Choosing React Router 6 for routing
- 12:18Micro-frontends for migrations
- 14:25Live demo of React Router 6
- 17:36React Router 6 data loading features
- 22:08Conclusion and recommendations
