JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="foo" placeholder="Change me!"><br>
<input type="text" id="bar" size="30" placeholder="Dummy control to switch focus">
JavaScript
$('#foo').change(function() {
console.log('Changed!');
$('#bar').focus();
});