JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="text1"/>

JavaScript

$(document).ready(

function() {
    $('#text1').keypress(

    function() {
        alert("hi");
    });
})