JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#" id="link">Link</a>
JavaScript
$("#link").on("click", function(e){
alert("link clicked");
});
$.each($._data($("#link")[0], "events"),function(i, v){
if(v[0].type === "click") {
alert("the click handler is set");
}
});