JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" onclick="reset();" />
JavaScript
var reset = null;
$(function() {
reset = function () {
alert('');
};
});
<input type="button" onclick="reset();" />
var reset = null;
$(function() {
reset = function () {
alert('');
};
});