JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" onclick="javascript:console.log(this)" value="har har"></input>
<input type="button" onclick="test()" value="har har 2"></input>
JavaScript
test = function()
{
console.log(this);
}