JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="inputId" />

JavaScript

$("#inputId").keyup(function(){
        $("#inputId").blur();
        $("#inputId").focus();
});

$("#inputId").change(function(){
        //do whatever you need to do on actual change of the value of the input field
});