JSFiddle - React, Tailwind, and code Playground

by Kiran Reddy

HTML

<textarea class="texty"></textarea>

CSS

.texty {
    width: 400px;
    height: 300px;
}

JavaScript

$(document).ready(function() {
    $(".texty").bind("keyup", function(e) {
        if (e.which == 13) {
            $(this).val($(this).val()+"I am ");
        }
    });
});