JSFiddle - React, Tailwind, and code Playground
by Daniel Lamb
HTML
<button id="red">make red</button>
<button id="clear">clear</button>
<br/><span id="example">Sample Text</span>
JavaScript
$('#red').on('click', function () {
$('#example').css('color', 'red');
});
$('#clear').on('click', function () {
$('#example').css('color', 'inherit');
});