JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input type="text" id="name" />
</form>
JavaScript
$('#name').keyup(function() {
alert('alert');
});
<form>
<input type="text" id="name" />
</form>
$('#name').keyup(function() {
alert('alert');
});