JSFiddle - React, Tailwind, and code Playground

CSS

.circle{
position: fixed;
width: 5px;
height: 5px;
border-radius: 50%;
background-color : red;
}

JavaScript

$(document).mousemove(function(event){
var cordX = event.pageX;
var cordY = event.pageY;
$("<div></div>").addClass("circle").appendTo("body").css({'top':cordY,'left':cordX})
})