JSFiddle - React, Tailwind, and code Playground
HTML
<p>Click me!</p>
JavaScript
$('p').click(function(){
alert('Ouch! Stop hitting me!');
});
var theFunction = $('p').data('events').click[0].handler;
theFunction();
<p>Click me!</p>
$('p').click(function(){
alert('Ouch! Stop hitting me!');
});
var theFunction = $('p').data('events').click[0].handler;
theFunction();