This example demos host and remote applications running in isolation with two different React versions and no shared libraries
app1
is the host application using one version of React and ReactDOM.app2
is the guest application using a different version of React and ReactDOM. It exposes an injector function which lets the host application (app1) import it and inject it into a div element.
Run yarn start
. This will build and serve both app1
and app2
on ports 3001 and 3002 respectively.
- localhost:3001 (HOST)
- localhost:3002 (STANDALONE REMOTE)