JSFiddle - React, Tailwind, and code Playground
by arcm111
HTML
<div id="div"></div>
<input type="button" value="Add Text" onClick="addText()" />
CSS
div{
width: 300px;
height: auto;
min-height: 100px;
border: 1px solid #333;
}
JavaScript
function addText(){
var str = "this is a test blah blah blah blah blah blah blah...............";
var div = document.getElementById('div');
div.innerHTML += str;
}