This is a simpley demonstration of using Zoid to orchestrate communication between a "host" application and 2 cross-domain third-party apps.
The src directory is organized as follows:
src/hostrepresents a customer web site that would use our widgetssrc/buttonrepresents and embeddable button that a user would click on in order to initiate interaction with our main app (here called checkout).src/checkoutrepresents our main embeddable app (e.g. something like paypal or stripe checkout).src/sharedhas some common Zoid components that would be needed by both the host site and the embeddable applications (button and checkout).
The webpack build creates 3 different html files with their respective javascript and css bundles.