JSFiddle - React, Tailwind, and code Playground
HTML
<button class="test">Test</button>
CSS
.test { color: red; }
JavaScript
$(function () {
$('button').click(function() {
$('<style>.test { color: aqua; }</style>').appendTo('body');
});
});