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');