JSFiddle - React, Tailwind, and code Playground
HTML
<div id="repeating">
<a class="foobar" href="http://www.google.com">Google</a>
</div>
JavaScript
$(function () {
$("#repeating").append($(".foobar").clone());
});
<div id="repeating">
<a class="foobar" href="http://www.google.com">Google</a>
</div>
$(function () {
$("#repeating").append($(".foobar").clone());
});