JSFiddle - React, Tailwind, and code Playground

JavaScript

enyo.kind({
    name: "ex.App",
    components: [
        {}
    ],
    currentTime: function() {
        this.$.button.set("content", enyo.now());
    },
    callOut: function() {
        externalFunction();
    }
});

var a = new ex.App().renderInto(document.body);

function externalFunction() {
    alert("called from enyo");
}

setInterval(function() {
    a.currentTime();
}, 1000);