JSFiddle - React, Tailwind, and code Playground
HTML
<h2>sdasdsaas, fuck it</h2>
<div class="container">
<textarea id="area" class="inner">
hello
</textarea>
<button id="button" value="submit">submit</button>
</div>
JavaScript
$("#button").click(function(){
$("#area").append("your text to append");
var console = $('#area');
console.scrollTop(
console[0].scrollHeight - console.height()
);} )