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 yarn build
to build the packages.
Run yarn serve
in the shell and remote1 and remote2 folders to start the servers.
This will build the packages and and serve them on ports 3000, 3001 and 3002 respectively.
- localhost:3000 (SHELL)
- localhost:3001 (STANDALONE REMOTE1)
- localhost:3002 (STANDALONE REMOTE2)