JSFiddle - React, Tailwind, and code Playground

by enyojs

JavaScript

enyo.kind({
    name: "MySample",
    components: [
        {kind: "onyx.Input", onkeyup:"keyup", oninput:"input"},
        {name:"result1"},
        {name:"result2"},
        {name:"result3"}
    ],
    keyup: function(inSender, inEvent) {
        this.$.result1.addContent(inEvent.keyCode + " ");
        this.$.result2.setContent(inSender.getValue());
    },
    input: function(inSender, inEvent) {
        this.$.result3.setContent(inSender.getValue());
    }
});

new MySample({fit:true}).write();