JSFiddle - React, Tailwind, and code Playground
HTML
<button id='button' type="button" onclick="return false;">Click Me!</button>
<input id='input' type='text'></input>
CSS
.button {
}
.input {
}
JavaScript
$("#button").on("click", function () {
$("#input").focus();
});