This sample shows how to use Styled Components with MF and React SSR.
- app1: consumes styled-components federated from app2
- app2: uses styled-components and exposes it to app1
Run yarn
to install the dependencies.
To run this demo you will need to open 2 terminals.
# Terminal 1
cd app1
pnpm run start
# Terminal 2
cd app2
pnpm run start
Bellow you can see the port mapping:
- localhost:3000 (app1)
- localhost:3001 (app2)