JSFiddle - React, Tailwind, and code Playground

by KelseyW

HTML

<input id="status"></input>
<div id="statuses"></div>

JavaScript

$("#status").keydown(function (e) {    
    if (e.which == 9) {
        $("#statuses").html(this.value);        
        this.value = "";        
        $("#status").focus();
        e.preventDefault();
    }
});