Module Federation Demo with React Router and Fog of War API

This project demonstrates two applications connected via module federation using React Router and the Fog of War API for lazy route patching. The project uses pnpm as the package manager, and you can install dependencies and run both applications simultaneously using pnpm.

Prerequisites

  • Node.js v20
  • pnpm v8

Installing

Clone the repository and install the dependencies using pnpm:

git clone https://github.com/swalker326/react-router-fog-of-war-example.git
cd react-router-fog-of-war-example
pnpm i

Running

# from the root of the project
pnpm dev