Module Federation Server Side Rendering example using React Suspense.
This example demonstrates a basic shell application loading remote components and rendering them server side.
shellis the host application which includes the SSR server.remote1standalone application which exposesContentcomponent and consumesImagefromremote2remote2standalone application which exposesImagecomponent.
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)