JSFiddle - React, Tailwind, and code Playground

HTML

<script type="text/javascript"
src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-271106d.js"></script>
<div id="output"></div>

JavaScript

Handlebars.registerHelper('helper1', function (foo, text) {                                             
    return 'FOO: ' + foo + ',   FOO.TEXT: ' + text;
});

var tmpl = Handlebars.compile('{{helper1 foo foo.text}} ({{foo}}, {{foo.text}})<br/>');

document.getElementById('output').innerHTML += tmpl();
document.getElementById('output').innerHTML += tmpl({});
document.getElementById('output').innerHTML += tmpl({foo:'OK'});
document.getElementById('output').innerHTML += tmpl({foo:{text:'YES'}});