JSFiddle - React, Tailwind, and code Playground

JavaScript

enyo.kind({
    name:"ex.Operation",
    kind:"onyx.Button",
    published:{
        op: ""
    },
    events: {
        onOperate:""
    },
    tap: function(inSender, inEvent) {
        this.doOperate({operation:this.op});
    }
});

enyo.kind({
    name:"ex.App",
    components:[
        {kind:"onyx.Button", dataeee:"+", content:"+ onyx.Button", ontap:"tapped"},
        {kind:"ex.Operation", op:"+", content:"+ ex.Operation", onOperate:"operated"}
    ],
    tapped: function(inSender, inEvent) {
        alert(inSender.dataeee);
    },
    operated: function(inSender, inEvent) {
        alert(inEvent.operation);
    }
});

new ex.App().renderInto(document.body);