JSFiddle - React, Tailwind, and code Playground

by nils_r

JavaScript

var button = document.createElement("button"),
    button_text = document.createTextNode("Text");
button.onclick=function(){
    alert(123);
}
button.appendChild(button_text);
document.body.appendChild(button);