JSFiddle - React, Tailwind, and code Playground

by Michael Perrenoud

HTML

<textarea>
<form class="formClass">
   <input id="foo" type="text">
</form>
</textarea>

JavaScript

$('textarea').val($('textarea').val() + '<p>Some text</p>');