JSFiddle - React, Tailwind, and code Playground

HTML

<h1 id="h1">test</h1> 

<input type="button" onclick="addText();" value="click" />

JavaScript

function addText()
{
    document.getElementById('h1').innerHTML+='some more<br />';
}