Skip to content

skypyxis/react-ts-module-federation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack 5 Module Federation with React/Typescript

This project consist of three pieces, a host app container and two remotes app1 app2.

Workflow:

  • app1 expose CounterAppOne component.
  • app2 expose CounterAppTwo header component.
  • container import CounterAppOne and CounterAppTwo 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.

Tech Stack

React, Typescript, Chakra UI, Webpack

About

Micro Frontend with React, Typescript and Webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.6%
  • TypeScript 31.2%
  • HTML 2.7%
  • SCSS 2.7%
  • Shell 1.8%