We have a React Webapp where every route is lazy loaded:
const HomeScreen = React.lazy(() => import('../components/HomeScreen/HomeScreen'));
This, as expected, generates various JS files during a production build:
- main.js
- 1.main.js
- 2.main.js
Is there any way to load those generated production code in another Webapp we have? Do they simply replace the content of a specific DOM element? and if so, how do they go about it?