JSFiddle - React, Tailwind, and code Playground
by scispear
CSS
.red { background: red; }
body { color: #eee; }
JavaScript
$(function(){
// Without jquery (besides the onload)
var div = document.createElement('div');
div.className = 'red';
div.innerHTML = "No jQuery"
document.getElementsByTagName('body')[0].appendChild(div);
// With jquery
$("<div class='blue'>With jQuery</div>").appendTo('body');
// Add dynamic style
$("<style type='text/css'>.blue { background: blue; }</style>").appendTo('head');
});