Example #

Import the createEventBus function into your Javascript main file:

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

Create a new event bus instance:

main.js

const eventBus = createEventBus()