JSFiddle - React, Tailwind, and code Playground
by John Brown
HTML
<h1> Click the big red button </h1>
<p> you know you want to click the big Red button </p>
<button class="redBtn" id = "btnRedButton">Click Me</button>
CSS
.redBtn {
background-color: red;
}
JavaScript
(function(){
document.getElementById("btnRedButton").addEventListener("click", buttonFunction);
function buttonFunction(){
alert("You should know by now that you NEVER press the big red button");
}
}());