JSFiddle - React, Tailwind, and code Playground

by el_chief

JavaScript

Ext.define('Contact', {
    extend:'Ext.data.Model',
    fields:[
        {
            name:'first_name',
            type:'string'
        },
        {
            name:'full_name',
            get:function(){
                return 'neil mcguigan';
            } 
        }
    ]
});

Ext.application({
    launch:function(){
        console.log('ok');
        var c = Ext.create('Contact');
        console.log(c);
    }
});