JSFiddle - React, Tailwind, and code Playground
by webcebir
HTML
<button id="test"
style="width:200px;
height:200px;
font-size:28px">Tıkla</button>
JavaScript
var select = function (x){
this.Node = document.querySelector( x );
return this;
}
var on = function (c,fonk,capture){
this.Node.addEventListener(c,fonk,capture);
return this;
}
document.addEventListener("DOMContentLoaded", function() {
select("#test").on("click",function(){
this.style["background"]="DeepSkyBlue ";
});
});