JSFiddle - React, Tailwind, and code Playground
HTML
<table border="1" id="data">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody></tbody>
<tfoot>
<tr>
<th>Name</th>
<th>Email</th>
</tr>
</tfoot>
</table>
CSS
.custom-menu {
z-index:1000;
position: absolute;
background-color:#C0C0C0;
border: 1px solid black;
padding: 2px;
}
JavaScript
$(function(){
$.ajax({
url:'https://jsonplaceholder.typicode.com/posts/1/comments',
type:'get',
dataType:'json',
success:function(data){
console.log(data);
var d = '';
data.map(function(obj){
data += '<td>'+obj.name+'</td><td>'+obj.email+'</td>';
});
$('#data').append(d);
}
});
});