JSFiddle - React, Tailwind, and code Playground
HTML
<input type = "button" value = "Reset" onclick = "myClear();">
JavaScript
function myClear() {
alert("Alert");
}
<input type = "button" value = "Reset" onclick = "myClear();">
function myClear() {
alert("Alert");
}