Skip to content

henriqueweiand/react-typescript-module-federation-and-communication

 
 

Repository files navigation

Webpack 5 Module Federation with React/Typescript + communication between components

This project consist of two pieces, a host app container and two remotes app1. Besides that the components have an example of communication between them.

Workflow:

  • app1 expose CounterAppOne component.
  • container import CounterAppOne component.

Running Demo

In order to run the demo I highly recommend installing lerna globally via

npm i -g lerna

Then,

lerna bootstrap

Run the command above at the root of your project. This command will make sure you have dependencies you need in order to run this project.

Finally,

npm run start

Lerna will start all your projects parallelly and open your browser.

Screenshots

App Screenshot

Tech Stack

React, Typescript, Chakra UI, Webpack, Lerna, React Router V6

Article

If you are curious about building this template head over to Introduction to Micro Frontends with Module Federation, React and Typescript

About

Micro Frontend with React, ReactRouter V6, Typescript and Webpack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 51.3%
  • JavaScript 44.7%
  • HTML 2.2%
  • Shell 1.8%