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>
<a href="#" onclick="$('#dg').datagrid('hideColumn','f5')">HideF5</a>
<a href="#" onclick="$('#dg').datagrid('hideColumn','f3')">HideF3</a>
<a href="#" onclick="$('#dg').datagrid('fitColumns')">ReFit</a>

<table id="dg" class="easyui-datagrid" style="width:400px;height:300px" data-options="
        fitColumns: true,
        singleSelect: true">
    <thead frozen="true">
        <tr>
            <th field="f1" width="60">F1</th>
            <th field="f2" width="60">F2</th>
            <th field="f3" width="60">F3</th>
            <th field="f4" width="60">F4</th>
        </tr>
    </thead>
    <thead>
        <tr>
            <th field="f5" width="60">F5</th>
            <th field="f6" width="60">F6</th>
        </tr>
    </thead>
</table>

JavaScript

var data = [
    {f1:"f11",f2:"f12",f3:"f13",f4:"f14",f5:"f15",f6:"f16"},
    {f1:"f21",f2:"f22",f3:"f23",f4:"f24",f5:"f25",f6:"f26"},
    {f1:"f31",f2:"f32",f3:"f33",f4:"f34",f5:"f35",f6:"f36"},
    {f1:"f41",f2:"f42",f3:"f43",f4:"f44",f5:"f45",f6:"f46"}
];

$('#dg').datagrid('loadData',data);