JSFiddle - React, Tailwind, and code Playground

HTML

<html>
<body>
    <textarea id="t"></textarea>
    <div id="show"></div>
</body>
</html>

JavaScript

$("#t").keyup(function(event) {
    $("#show").html($(this).val());
});