JSFiddle - React, Tailwind, and code Playground

HTML

<html>
<body>
<input type="button" value="button" onclick="test()" />
</body>
</html>

JavaScript

function test() {
    alert('hi');
}