- run
yarn
to install from this directory, apostinstall
script will perform the install in each next directory - run
yarn start
and browse tohttp://localhost:3000
andhttp://localhost:3001
We have two next.js applications
next1
- port 3000next2
- port 3001
The "main" application that is federating code (the host) is next1, visiting http://localhost:3000 should show you a nav bar with some text "Next1"
- Next1 exposes a component
nav
which is comsumed by next2 - If you comment out the
useEffect
insidenav
on line 12 the next2 app loads fine. - There is an issue with using a federated module that has hooks.
- Please !?