JSFiddle - React, Tailwind, and code Playground
by webcebir
HTML
<h2 class="test">javaScript</h2>
JavaScript
var $ = function( x ) {
return document.querySelector( x );
};
document.addEventListener("DOMContentLoaded", function() {
$(".test").style.color="darkgreen";
});