JSFiddle - React, Tailwind, and code Playground

HTML

<p></p>
<button id="btn1">Click me</button>

JavaScript

$("#btn1").click(function() {
 $("p").append("<div class=\"operator\">Test</div>");
 });