JSFiddle - React, Tailwind, and code Playground

HTML

<input>

JavaScript

$('input').keypress(function() {
    var that = this;
    setTimeout(function() {
        $('body').append('<p>' + that.value + '</p>');
    }, 0);
});