JSFiddle - React, Tailwind, and code Playground
HTML
<ul id="templates">
<li class="bar"></li>
</ul>
CSS
.bar {
background:#FAFAFA;
border:1px solid #e4e4e4;
}
JavaScript
var children = $('#templates>.bar').html('yo');
$(document.body).append(children.length);