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>

<div style="position:absolute; top: 25px; bottom:0; right:0; left:0;"> 
    <table id="dg" class="easyui-datagrid"  data-options="
            fit: true,
            fitColumns: true,
            singleSelect: true">
        <thead>
            <tr>
                 <th field="f1" width="60" data-options="fixed:true">F1</th>
                <th field="f2" width="60">F2</th>
                <th field="f3" width="60">F3</th>
                <th field="f4" width="60">F4</th>
                <th field="f5" width="60" data-options="fixed:true">F5</th>
                <th field="f6" width="60" data-options="fixed:true">F6</th>
            </tr>
        </thead>
    </table>
</div>

JavaScript

$(window).ready(function(){
     $( window ).resize(function() {
         $('#dg').datagrid('resize');
     });
 });

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);