JSFiddle - React, Tailwind, and code Playground
JavaScript
$(document).on('mouseenter', onMouseUpdate);
function onMouseUpdate(e) {
x = e.pageX;
y = e.pageY;
alert(x + ',' + y);
}
$(document).on('mouseenter', onMouseUpdate);
function onMouseUpdate(e) {
x = e.pageX;
y = e.pageY;
alert(x + ',' + y);
}