JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head>
    </head>
    <body>
        <input type="text" id="search" size="15" maxlength="50">
    </body>
</html>

JavaScript

$("#search").keyup(function (e) {
    alert ($(this).val());
});