An open API service indexing awesome lists of open source software.

https://github.com/ashinga48/module-federation-webpack


https://github.com/ashinga48/module-federation-webpack

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Bi-Directional Hosts Example

This example demos bi-directional hosts each with their own remote `Button` components.

- `app1` exposes a red `App 1 Button` component.
- `app2` exposes a blue `App 2 Button` component.

# Running Demo

Run `yarn start`. This will build and serve both `app1` and `app2` on ports 3001 and 3002 respectively.

- [localhost:3001](http://localhost:3001/)
- [localhost:3002](http://localhost:3002/)

Notice that `app1` will asynchronously load `app2`'s button and vice versa.