JSFiddle - React, Tailwind, and code Playground

by Derek Anderson

JavaScript

enyo.kind({
    name: 'MyApplication',
    kind: 'enyo.Application',
    view: 'MainView',
});


enyo.kind({
    name: 'MainView',
    foo: 'baz',
    components: [
        {name: 'subview', kind:'SubView'},
    ],
    bindings : [
        {from:'.foo', to:'.$.subview.foo'}
    ]
});

enyo.kind({
    name: 'SubView',
    components: [
        {name: 'foo'},
    ],
    bindings : [
        {from:'.foo', to:'.$.foo.content'}
    ]
});

new MyApplication().renderInto(document.body);