JSFiddle - React, Tailwind, and code Playground
HTML
<textarea style="width: 100%; height: 300px; resize: none;" id="console_output" readonly></textarea>
JavaScript
$(document).ready(function(){
$('#console_output').append('Some text.\n');
$('#console_output').append('More text.');
});