JSFiddle - React, Tailwind, and code Playground

HTML

<button onclick="return test(this)" type="button"> test </button>

JavaScript

function test(sender) {
    alert(sender);
    alert(this);
    return false;
}