| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This example demos the ability to load two separate versions of react.
Module Federation allows us to create an adapter which attaches a hooks-friendly version to render a section of thr app using modern versions.
The adapter consumes both versions of react to "translate" the props into a fresh render. This could be presented as a HOC or federated components could have a legacy export containing the adapter build in.
Run yarn start. This will build and serve both app1 and app2 on ports 3001 and 3002 respectively.
| Back | FazBrowse Home | New Git URL |