JSFiddle - React, Tailwind, and code Playground
HTML
<div class="paymentTracker">
</div>
CSS
.paymentTracker {width:300px; height:300px;border:1px solid;}
JavaScript
$( ".paymentTracker" ).mouseover(function(event) {
var x = event.clientX;
var y = event.clientY;
var coords = "X coords: " + x + ", Y coords: " + y;
alert(coords);
});