JSFiddle - React, Tailwind, and code Playground HTML <div id="foo"></div> JavaScript var $a = $(' <div>hi</div>') $('#foo').append($a);