JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<button id="btn">Recreate</button>
<table id="dg"></table>

JavaScript

var data= {
            "total": 28,
            "rows": [
                {
                    "productid": "FI-SW-01",
                    "productname": "Koi",
                    "unitcost": 10.00,
                    "status": "P",
                    "listprice": 36.50,
                    "attr1": "Large",
                    "itemid": "EST-1"
                },
                {
                    "productid": "K9-DL-01",
                    "productname": "Dalmation",
                    "unitcost": 12.00,
                    "status": "P",
                    "listprice": 18.50,
                    "attr1": "Spotted Adult Female",
                    "itemid": "EST-10"
                },
                {
                    "productid": "RP-SN-01",
                    "productname": "Rattlesnake",
                    "unitcost": 12.00,
                    "status": "S",
                    "listprice": 38.50,
                    "attr1": "Venomless",
                    "itemid": "EST-11"
                },
                {
                    "productid": "TP-SN-02",
                    "productname": "Sabb",
                    "unitcost": 12.00,
                    "status": "P",
                    "listprice": 38.50,
                    "attr1": "Venomless",
                    "itemid": "EST-11"
                }
            ]
        };

$('#dg').datagrid({
    columns:[[
            {
                field: 'listprice',
                title: 'Price',
                width: '15%',
                hidden: false
            },
            {
                field: 'itemid',
                title: 'Code',
                hidden: false,
                width: '10%'
            },
            {
                field: 'productid',
                title: 'Name',
                hidden: false,
                width: '10%'
            }
        ]],
    idField:'id',
    data:data
});

$('#btn').click(function(){
    $('#dg').datagrid({
       ...