JSFiddle - React, Tailwind, and code Playground
HTML
<div id="box"></div>
CSS
div#box {
width:200px;
height:200px;
background-color:beige;
position:absolute;
top:100px;
left:100px;
}
JavaScript
$(function() {
$('#box').mousemove(function(e) {
console.log("e.which is " + e.which);
});
});