fancy-ev
v0.0.2
Published
Helps to set events on a HTML element
Downloads
1
Maintainers
Readme
Syntax of Using
import { setEvent } from 'fancy-ev';
const button = document.querySelector('button');
const listener = () => alert('Clicked on the button')
setEvent(element: button, type: 'click', listener: listener); // Or any event type you want