JSFiddle - React, Tailwind, and code Playground
HTML
<div class="cell">
<input type="text" size=1>
<textarea style="display:none;"></textarea>
</div>
JavaScript
$('.cell input').focusin(function() {
$(this).hide();
$('.cell textarea').show();
setTimeout(function(){
$('.cell textarea').focus();
}, 0);
});