JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container">
<label>Enter your name:</label>
<input type="text">
</div>
JavaScript
document.getElementById('container').innerHTML += '<button id="submit">Submit</button>';
<div id="container">
<label>Enter your name:</label>
<input type="text">
</div>
document.getElementById('container').innerHTML += '<button id="submit">Submit</button>';