JSFiddle - React, Tailwind, and code Playground
HTML
<div id="poll">
<div class="voted">
</div>
</div>
<a href="#" class="append">Click to append</a>
JavaScript
var html = '<div id="hidden-div">content</div>';
$('.append').click(function() {
$('.voted').append(html);
});