JSFiddle - React, Tailwind, and code Playground

by TheDiamondDoge

HTML

<input id="test" />
<button>Hi</button>

JavaScript

var input = document.getElementById("test");
input.addEventListener('input', function(){
	var thiz = this;
	setTimeout(function() {
  	console.log(thiz.value);  	
  }, 2000);
});