JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="expandText" cols=40 rows=4></textarea>
JavaScript
$('#expandText').click(function () {
$(this).animate({ height: "200px" }, 500);
});
<textarea id="expandText" cols=40 rows=4></textarea>
$('#expandText').click(function () {
$(this).animate({ height: "200px" }, 500);
});