A demo of two react projects use webpack module federation
- reactA: the project of reactA
- reactB: the project of reactB
more details:
- reactA mf config
reactA\config\mf-config.js
- reactA component use reactB component
reactA\src\app.js
- reactB mf config
reactB\config\mf-config.js
- reactB component source code
reactB\src\button.js
- reactB component use reactB component in the same project
reactB\src\app.js
cd reactB
npm install
npm start
cd reactA
npm install
npm start
the component in reactB
the component used in reactA