JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="hello" id="hello"/>
JavaScript
var input = document.getElementById("hello")
input.addEventListener('blur', function(){
alert('hello');
input.select();
input.focus();
})