This repository contains several small samples on different integrations of React
and @module-federation/enhanced
plugin.
- template
├ host (A React host app)
├ remote (A React remote app)
├ package.json (Package file with scripts to run all apps at once)
└ README.md (This readme file to explain how to run the sample)
Install the dependencies using npm
:
npm i
To run the samples in development mode, run the following command:
npm run dev
To run the samples in production mode, first build the samples using the following command:
npm run build
Then, run the following command to serve the samples:
npm run start