JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" onclick="f();" />

JavaScript

function f() {
 alert("hello world");   
}