JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" id="saveFavPunch" name="saveFavPunch" value="save" />
JavaScript
$("#saveFavPunch").on("click", function () {
alert('hello2');
});
<input type="button" id="saveFavPunch" name="saveFavPunch" value="save" />
$("#saveFavPunch").on("click", function () {
alert('hello2');
});