JSFiddle - React, Tailwind, and code Playground

by Danny Michaelis

HTML

<div></div>

CSS

div {
    height: 100px;
    width: 100px;
    background-color: blue;
}

JavaScript

$("div").mousedown(function() {
        $("div").mousemove(function(event) {
                $('div').html("( " + event.clientX + ", " + event.clientY + " )");
        });
    })