JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">test</div>
JavaScript
//bind the click event
$("#test").click(function() {alert('hi');});
//get the handler from data('events')
$.each($("#test").data("events"), function(i, event) {
if (i === "click") {
$.each(event, function(j, h) {
alert(h.handler);
});
}
});