gap-front-event
v3.1.1
Published
# install
Downloads
11
Readme
Gap Front Event
install
$ yarn add gap-front-event
Usage
import {GapEvent} from 'gap-front-event';
const event = new GapEvent();
event.on('attack', (target) => {
console.log(`attack ${target}`);
});
event.trigger('attack', 'cat');