JSFiddle - React, Tailwind, and code Playground

by Ryan Duffy

JavaScript

enyo.kind({
    name:"ex.App",
    components:[
        {name:"dec", kind: "onyx.InputDecorator", components: [
                {name:"input", kind: "onyx.Input"}
        ]}
    ],
    create:function() {
        this.inherited(arguments);
        this.$.dec.createComponent({kind: "onyx.Button", ontap:"buttonTapped", owner:this, components:[
            {kind:"Image", src:"http://www.gravatar.com/avatar.php?gravatar_id=c335e701eb703b5aa7f1b95bad9d5b77&size=15"},
            {content:"Go!"}
        ]});
    },
    buttonTapped:function() {
        this.$.input.setValue("Hello!");
    }
});

new ex.App().write();