Skip to content

Latest commit

 

History

History

react-in-vue

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

React in Vue - Module Federation Demo

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.

Running Demo

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.

CTRL + C can only stop the host server. You can run pnpm stop to stop all services.