JSFiddle - React, Tailwind, and code Playground

by stecb

HTML

<div id="pippo">Hey there, click here</div>

JavaScript

var pippo = $('pippo');

pippo.addEvent('click',function(){console.log('clicked')});
pippo.addEvent('mouseover',function(){console.log('mouseover')});

console.log(pippo.retrieve('events'));