JSFiddle - React, Tailwind, and code Playground

HTML

<input
     onblur="secondary.appendChild(this);"
     onfocus="this.parentNode.removeChild(this);"
     autofocus
     value="focus this field and wait a half second"
     style="width:100%">
         <div id="secondary"></div>

CSS

#secondary {
    padding: 8px;
    background-color: red;
}