JSFiddle - React, Tailwind, and code Playground

by Bikram Pahi

HTML

<input type="text">
<textarea></textarea>

JavaScript

$('input[type=text]').keypress(function(event) {
    if (event.keyCode == 13) {
    	$('textarea').val("hello");
        event.preventDefault();
    }
});