JSFiddle - React, Tailwind, and code Playground
HTML
<button type="button">Activate Me</button>
JavaScript
$(function() {
function activated() {
alert($(this).is(':hover'));
}
$('button').click(activated);
});
<button type="button">Activate Me</button>
$(function() {
function activated() {
alert($(this).is(':hover'));
}
$('button').click(activated);
});