JSFiddle - React, Tailwind, and code Playground
HTML
<input id="t" type="text" oninput="checker();">
<script>
function checker() {
var x = document.getElementById('t').value;
if (x == "гугл") {window.location.replace("http://google.com"); }
}
</script>