JSFiddle - React, Tailwind, and code Playground
HTML
<p id="myp" class='foo'>This is some text.</p>
CSS
.foo {
background-color: red;
}
JavaScript
setTimeout(function(){$('#myp').removeClass('foo', 1500); }, 500);
<p id="myp" class='foo'>This is some text.</p>
.foo {
background-color: red;
}
setTimeout(function(){$('#myp').removeClass('foo', 1500); }, 500);