JSFiddle - React, Tailwind, and code Playground
by KyleMuir
HTML
<p id="par">click me too!</p>
JavaScript
var functionNameGoesHere = function () {
alert("test");
};
$(function () {
$("#par").on("click", function () {
functionNameGoesHere();
});
var elem = $('#par')[0];
var data = jQuery.hasData( elem ) && jQuery._data( elem );
console.log(data.events.click[0].handler);
});