Example

Import the createEventBus function into your Javascript main file:

import { createEventBus } from 'https://cdn.skypack.dev/ficusjs@6'

Create a new event bus instance:

main.js

const eventBus = createEventBus()