JSFiddle - React, Tailwind, and code Playground
HTML
<input id="search" type="search" size="50"/>
JavaScript
$('#search').on('search', function(evt) {
alert( "handler called:" + evt );
});
<input id="search" type="search" size="50"/>
$('#search').on('search', function(evt) {
alert( "handler called:" + evt );
});