ryok90 / react-mf-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React <> Module Federation Plugin - Examples

npm

This repository contains several small samples on different integrations of React and @module-federation/enhanced plugin.

Sample Structure

- 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)

Sample Stack

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

About


Languages

Language:TypeScript 66.2%Language:JavaScript 27.7%Language:CSS 4.3%Language:HTML 1.8%