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