JSFiddle - React, Tailwind, and code Playground

HTML

<input id="myTextField"/>

JavaScript

var hashTO;
$('#myTextField').on('keyup', function () {
    if (hashTO !== undefined) {
        clearTimeout(hashTO);
    }
    hashTO = setTimeout(updateHash, 1000);
});

function updateHash() {
    var hashVal = encodeURI($('#myTextField').val());
    window.location.hash = hashVal;
}