JSFiddle - React, Tailwind, and code Playground

by nnnnnn

HTML

<div>Hover here</div>

JavaScript

setInterval(function(){
    if ($("div").is(":hover"))
        $("<p>").text("Hovered").appendTo("body");
}, 1000);