JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" value="test" />
JavaScript
$('input[type=button]').click( function() {
alert("test");
});
<input type="button" value="test" />
$('input[type=button]').click( function() {
alert("test");
});