Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 908 Bytes

File metadata and controls

23 lines (14 loc) · 908 Bytes

Server Side Rendering Example

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 exposes Content component and consumes Image from remote2
  • remote2 standalone application which exposes Image component.

Running Demo

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.