JSFiddle - React, Tailwind, and code Playground

HTML

<body class="cursor">

</body>

CSS

.cursor {
    top: 50%;
    left: 50%;
    border-radius: 100%;
    background: #fe4946;
    position: absolute;
}

JavaScript

$(document).mousemove(function (e) {
        $(".cursor").css({
            left: e.pageX,
            top: e.pageY
        });
    });