JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script id="template" type="text/x-handlebars-template">
<ul>
{{#each array}}
<li>{{string}}</li>
{{/each}}
</ul>
</script>
<div id="results"></div>
JavaScript
$(function() {
var source = $("#template").html();
var template = Handlebars.compile(source);
var html = template(obj);
$('#results').html(html);
});
var obj = {
array: [{
string: 'hello'
},
{
string: 'tim'
}]
}