JSFiddle - React, Tailwind, and code Playground

HTML

<button id="btn">Click Me to see some text</button>

JavaScript

document.getElementById("btn").addEventListener("click", function(){
 	alert("this thing works");
 });