JSFiddle - React, Tailwind, and code Playground
HTML
<h1>Lorem</h1>
<p>Name: </p>
JavaScript
$(function() {
$("p").bind("showName", function(e) {
//e.currentTarget.onmouseover= function() { alert("hi") }
$(this).oncopy(function() { alert("hi!") });
});
$("p").trigger("showName");
});