| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This example demonstrates how to use multiple share scopes in Module Federation to run React 17 and React 18 simultaneously in the same host application.
| Application | Port | Description |
|---|---|---|
| host | 8080 | Host app consuming both React 17 and React 18 remotes |
| provider-react-17 | 8081 | Remote exposing components built with React 17 |
| provider-react-18 | 8082 | Remote exposing components built with React 18 |
The host defines two share scopes:
Each remote is associated with the appropriate scope:
This allows isolated React instances per version, preventing version conflicts.
Install dependencies:
pnpm installStart all applications in development mode:
pnpm startpnpm build
pnpm serve| Back | FazBrowse Home | New Git URL |