JSFiddle - React, Tailwind, and code Playground
HTML
<button type='button' id='next'>Next</button>
JavaScript
$("#next").click(function(e) {
alert("works");
});
<button type='button' id='next'>Next</button>
$("#next").click(function(e) {
alert("works");
});