JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js"></script>
<input type="text" id="search"><br>
Ajax search <div id="output"></div>

JavaScript

function ajax_lookup( event ) {
	// Perform an AJAX lookup on $(this).val();
  $("#output").text("Searching for: " + $(this).val());
};

$('#search').keyup( $.debounce( 250, ajax_lookup ) );