JSFiddle - React, Tailwind, and code Playground

HTML

<h1>Nothing yet...</h1>
<input type="text" id="search" />
<label></label>

CSS

label { display: block; }

JavaScript

$("#search").keyup(function(e) {
    Search(e);
}).bind("paste", function(e) { 
    setTimeout(function() { Search(e); }, 100);
});
        
function Search(event) {
    $("h1").text("search '" + $("#search").val() + "'");
}