JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<button>Blah</button>
<input type="text"></input>
</form>
JavaScript
$('button').on('click', function (event) {
alert(event.which);
});
$('input[type="text"]').on('keyup', function (event) {
alert('hey');
});