JSFiddle - React, Tailwind, and code Playground

by suamikim

HTML

<link rel="stylesheet" href="http://extjs.cachefly.net/ext-4.1.1a-gpl/resources/css/ext-all-debug.css">
<script src="http://extjs.cachefly.net/ext-4.1.1a-gpl/ext-all-debug.js"></script>

JavaScript

Ext.onReady(function() {
    Ext.create('Ext.form.Panel', {
        width: 300,
        renderTo: Ext.getBody(),
        
        layout: {
            type: 'hbox',
            align: 'stretch'
        },
        
        bodyPadding: 5,
        
        items: [{
                xtype: 'textfield',
                fieldLabel: 'Name',
                labelWidth: 50,
                flex: 1
            },{
                xtype: 'button',
                text: 'Add',
                margin: '0 0 0 5'
            },{
                xtype: 'button',
                text: 'Update',
                margin: '0 0 0 5'
        }]
    });
});