JSFiddle - React, Tailwind, and code Playground

by Walter Rumsby

JavaScript

Ext.widget({
    renderTo: Ext.getBody(),
    xtype: 'component',
    cls: 'mx-message--info',
    renderTpl: 'Welcome to the new Dashboard. <a class="mx-message--info-revertlink" href="/">Revert to the old Dashboard</a>',
    initComponent: function (config) {
        this.initConfig(config);
        this.callParent();
    },
    listeners: {
        click: {
            element: 'el',
            delegate: '.mx-message--info-revertlink',
            fn: function (e, el, opts) {
            	// FIXME: you wouldn't want to call e.preventDefault() IRL
                // because you want to navigate to the link.
            	e.preventDefault();

                var cmp = this;

               	console.log('mixpanel is watching', cmp);
            }
        }
    }
});