JSFiddle - React, Tailwind, and code Playground

by alexrom7

HTML

<link rel="stylesheet" type="text/css" href="//cdn.sencha.io/ext-4.1.0-gpl/resources/css/ext-all-debug.css"
/>

JavaScript

var container = Ext.create('Ext.Container', {
    renderTo: Ext.getBody(),
    
    items   : [
        {
            xtype: 'button',
            text : 'Scope Window',
            scope: this,
            handler: function() {
                console.log(this);
            }
        },
        {
            xtype: 'button',
            text : 'Scope Button',
            handler: function() {
                console.log(this);
            }
        }
    ]
});