JSFiddle - React, Tailwind, and code Playground

by lollero

HTML

<input type="text" /> <input type="button" class="bounceback" value="button" />

JavaScript

$('.bounceback').on("click", function() {
    $('.bounceback').prev().focus();
});