JSFiddle - React, Tailwind, and code Playground
HTML
<div id="xxxx"> </div>
CSS
#xxxx {
background:gray;
width:200px;
height:200px;
top: 60px;
left: 60px;
position: absolute;
cursor:url('http://www.javascriptkit.com/dhtmltutors/cursor-hand.gif'), auto;
}
JavaScript
var t = document.getElementById("xxxx");
t.onclick = function(e)
{
console.log(e.offsetX+", "+e.offsetY);
}