This example shows how you can create a component library application that exposes components for other apps to use.
app1
andapp2
are standalone applications that exposes its App file for reuse.app3
is the master Application that consumes bothapp1
andapp2
Run npm install
and npm start
inside each repo respectively. This will build and serve your apps on ports 3001, 3002 and 3003
Example referenced from article link explaining this project
- Micro front-end
- Webpack 5 Module Federation
- React hooks
- React lazy loading
- Parent to child communication || Child to parent communication