JSFiddle - React, Tailwind, and code Playground

HTML

<div id="show">show</div>

CSS

#show {
    width:100px;
    height:100px;
    background:green;
    color:#fff;
    text-align:center;
    position:fixed;
}

JavaScript

$(document).click(function(e){
    $('#show').css({left:e.pageX,top:e.pageY})
})