JSFiddle - React, Tailwind, and code Playground
HTML
<div>
Test
</div>
JavaScript
$(document).ready(function() {
$("div").css("background-color", "red");
setTimeout(function() {
confirm("Background has now changed");
}, 50);
});