Module Federation Server Side Rendering example using React Suspense.
This example demonstrates a basic shell application loading remote components and rendering them server side.
shell
is the host application which includes the SSR server.remote1
standalone application which exposesContent
component and consumesImage
fromremote2
remote2
standalone application which exposesImage
component.
Run yarn
to install the dependencies.
Run pnpm run start
this will build and start all applications.
Bellow you can see the port mapping:
- localhost:3000 (SHELL)
- localhost:3001 (STANDALONE REMOTE1)
- localhost:3002 (STANDALONE REMOTE2)