JSFiddle - React, Tailwind, and code Playground

HTML

<input type = "button" value = "Reset" onclick = "myClear();">

JavaScript

function myClear() {
    alert("Alert");
}