JSFiddle - React, Tailwind, and code Playground
by Mitch Greer
HTML
<body>
<button type="button" id="button" style="font-size: 150%;">The Button</button>
(Its id is 'button'.)
<p>
<input type="text" id="textfield" style="font-size: 150%;"/> ('textfield')
</p>
</body>
JavaScript
var buttonA = document.getElementById("button");
buttonA.addEventListener("click", function(){alert("Click!");}, false);