JSFiddle - React, Tailwind, and code Playground
HTML
<button id="output" onclick="testfun(this)" >TEST</button>
JavaScript
function testfun(sender){
//let e = document.getElementById("output");
console.log(this);
console.log(sender);
console.log(event);
}
console.log("HELLO");