JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/icon.css">
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/color.css">
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/demo/demo.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
    <table class="easyui-datagrid" data-options="fitColumns:true,onCheck:onCheck,onUncheck:onUncheck,onCheckAll:onCheckAll,onUncheckAll:onUncheckAll">
    <thead>
    <tr>
    <th data-options="field:'ck', checkbox:true"></th>
    <th data-options="field:'code', width:10">Code</th>
    <th data-options="field:'name', width:10">Name</th>
    <th data-options="field:'price', width:10, formatter:formatIt"><input type="checkbox"> Has Price</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>001</td><td>name1</td><td>2323</td>
    </tr>
    <tr>
    <td>002</td><td>name2</td><td>4612</td>
    </tr>
    </tbody>
    </table>
<script>
    function formatIt(value,row){
        return '<input type="checkbox" class="mc">';
    }
    function onCheck(index,row){
        var opts = $(this).datagrid('options');
        opts.finder.getTr(this,index).find('input.mc').prop('checked',true);
    }
    function onUncheck(index,row){
        var opts = $(this).datagrid('options');
        opts.finder.getTr(this,index).find('input.mc').prop('checked',false);
    }
    function onCheckAll(){
        var opts = $(this).datagrid('options');
        opts.finder.getTr(this,0,'allbody').find('input.mc').prop('checked',true);
    }
    function onUncheckAll(){
        var opts = $(this).datagrid('options');
        opts.finder.getTr(this,0,'allbody').find('input.mc').prop('checked',false);
    }
</script>