JSFiddle - React, Tailwind, and code Playground

HTML

<p id="para">Lorizzle ipsum dolizzle sit amizzle, consectetuer elit. Nullam sapien velizzle, go to hizzle volutpizzle, suscipit owned, gravida vizzle, gangster. Pellentesque egizzle shizzlin dizzle. Sed eros. Cool at that's the shizzle dapibus brizzle that's the shizzle tempor. Mauris pellentesque nibh et turpizzle. Vestibulum izzle gangsta. Pellentesque eleifend rhoncus owned. In yippiyo habitasse pot dictumst. Shizznit dapibizzle. Sheezy doggy urna, pretium phat, mattizzle ac, shut the shizzle up vitae, nunc. Daahng dawg suscipizzle. Integizzle sempizzle velit sizzle nizzle. Sizzle yo tortor pimpin' arcu i saw beyonces tizzles and my pizzle went crizzle consequizzle. Ma nizzle convallis, izzle tellivizzle posuere, crunk hizzle luctizzle pede, dawg blandizzle augue dolizzle i'm in the shizzle velizzle. Pellentesque izzle that's the shizzle nizzle elizzle owned for sure. Curabitizzle izzle break yo neck, yall, pulvinar izzle, rizzle eleifend, shiz ass, yippiyo. Nunc daahng dawg get down get down. Dang ipsum dolor sizzle shizzlin dizzle, black adipiscing elit. Shiznit izzle boofron. In congue. Vestibulizzle ac stuff crackalackin velizzle aliquet dictizzle. In facilisizzle izzle sizzle shit funky fresh. Rizzle commodo. Nunc eu izzle izzle i'm in the shizzle lacinia pot. Aenizzle nizzle massa izzle urna we gonna chung lobortizzle. Shit enizzle est, bibendizzle pulvinar, ornare vizzle, imperdizzle vitae, lacizzle. Vivamus things hizzle fo shizzle hizzle adipiscing tempor. Curabitizzle fo shizzle daahng dawg gizzle tellus break yo neck, yall nonummy.</p>

JavaScript

var isMouseDown = false;
document.getElementById("para").onmousedown = function () {
    isMouseDown = true;
};
document.getElementById("para").onmouseup = function () {
    isMouseDown = false;
    this.style.background = "white";
};
document.getElementById("para").onmousemove = function () {
    if (isMouseDown) { /* do drag things */
        this.style.background = "red";
    }
};