JSFiddle - React, Tailwind, and code Playground

HTML

<div id="el">Test</div>
<code>
    <span id="output"></span>
</code>

CSS

div { width: 200px; height: 200px; border: solid 1px red; }

JavaScript

$(function() {
  $("#el").click(function(){ alert("click"); });
  $("#el").mouseover(function(){ alert("mouseover"); });

  $.each($("#el").data("events"), function(i, event) {
    output(i);
    $.each(event, function(j, h) {
        output(h.handler);
    });
  });
});

function output(text) {
    $("#output").html(function(i, h) {
        return h + text + "<br />";
    });
}