Small micro frontend example using Vite and Module Federation. There are two applications: React and Vue.
Type | Port | Description | Url |
---|---|---|---|
Host | 5000 | The React application. | http://localhost:5000 |
Remote | 5001 | The Vue application. | http://localhost:5001 |
The goal is to render the Vue <Counter />
component in the React application.
For each applications do:
-
Install dependencies
npm i
-
Build the application
npm run build
-
Run the local build result
npm run preview