JSFiddle - React, Tailwind, and code Playground

by Casiano Rodriguez-Leon

HTML

<script type="text/html" id="mytemplate">
   <% _.each(people, function(n) { %>
       <li><%= n %></li>
   <%}); %>
</script>
<div id="target"></div>

CSS

#target {
    font-style: oblique;
    font-weight: bold;
    font-size: xx-large;
}

JavaScript

var t = _.template(mytemplate.innerHTML);
target.innerHTML = t({ people: ['Pedro', 'Juana', 'MarĂ­a']});