In the example, the second application is imported via dynamic import. And there is an example of connecting one header component from the second application when the button is clicked. When building, each application is placed in its own folder.
$ npm install
$ npm start
The app will be available at http://localhost:9000/
.