JSFiddle - React, Tailwind, and code Playground
HTML
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
</head>
<script>
function xx(){
$('#f').fadeIn('slow',function(){
$('#dg').datagrid('resize');
}).css("display","inline-block");
}
</script>
<button onclick="xx();">Click Me</button><br>
<form id="f" style="display:none;">
<table id="dg" class="easyui-datagrid" style="width:400px;height:250px"
data-options="url:'',fitColumns:true,singleSelect:true">
<thead>
<tr>
<th data-options="field:'code',width:100">Code</th>
<th data-options="field:'name',width:100">Name</th>
<th data-options="field:'price',width:100,align:'right'">Price</th>
</tr>
</thead>
</table>
</form>
<br>
<button onclick="xx();">Click Me</button>