It also demonstrates how one can receive events that
are emitted from within the components.
This way an embeddable component can interact with the
host page (this html).
React example
Vue example
Click on 'Increment counter' and watch the emitted events: