Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 745 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 745 Bytes

A federated React app; host with two remotes

  • shared state using context
  • nested routing
  • css modules and images

1.)

mv .sample-env .env

set env values

2.) set server information (domain / server path to remote bundles)

  • host/src/index.html <script> tags

3.)

# local 
npm start

# prod 
npm run build

CLI

npm run create-remote DashboardPage
npm run show-ports

Note:

  • The nav list styling changes when the /img route is accessed, and that styling persists after navigating away from /img.

  • On subsequent routing to /img, the image is fetched or not when the browser cache is disabled or active, respectively.


Bonus features:

  • No Typescript