JSFiddle - React, Tailwind, and code Playground

by shimmy

HTML

<input type="search">

JavaScript

$('input[type=search]').on('search', function(){
   if(this.value){
      console.log(this.value);
      /* call ajax request here */
   }
});