JSFiddle - React, Tailwind, and code Playground
by Ryan Duffy
HTML
<script src="http://enyojs.com/enyo-2.0b/enyo.js"></script>
JavaScript
enyo.Control.prototype.render = function() {
return this.parent && this.parent.beforeChildRender(this), this.hasNode() || this.parent.hasNode() && this.renderNode(), this.hasNode() && (this.renderDom(), this.rendered()), this;
}
enyo.kind({
name:"ex.App",
kind:"Control",
components:[
{kind:"Control", name:"wrapper", onclick:"addAChild"}
],
addAChild:function() {
this.$.wrapper.createComponent({
kind:"Control",
content:"I'm a child"
});
this.$.wrapper.render();
}
});
var n = new ex.App();
n.addAChild();
n.renderInto(document.body);