This example demos consumption of federated modules from a vite bundle. layout
app (vue based) depends on a component exposed by home
app (react based). It is a simple proof of concept using ReactDOMServer.renderToString
to inject data a html string into a vue template.
First, cd packages/examples/react-in-vue
, then run pnpm build
and pnpm serve
. This will build and serve both home
and layout
on ports 5000, 5001 respectively.
- HOST (layout): localhost:5000
- REMOTE (home): localhost:5001
CTRL + C
can only stop the host server. You can run pnpm stop
to stop all services.