JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

var reset =  null;
    $(function() {

reset = function () {
   alert('');

    };
    });