JSFiddle - React, Tailwind, and code Playground
HTML
<title>Перемещение мышки</title>
<body>
<h1 id="heading">Привет, мир!</h1>
</body>
CSS
#heading{
position:absolute;
}
JavaScript
$(document).bind("mousemove",function (event) {
$("#heading").css({
left: event.pageX+"px",
top: event.pageY+"px"
});
});