JSFiddle - React, Tailwind, and code Playground
by schlomm
HTML
<div class="uh">
</div>
JavaScript
function tableCreate() {
var body = document.getElementsByClassName("uh"),
tbl = document.createElement('table');
tbl.style.width = '100px';
tbl.style.border = '1px solid black';
for (var i = 0; i < 3; i++) {
var tr = tbl.insertRow();
for (var j = 0; j < 3; j++) {
var td = tr.insertCell();
td.appendChild(document.createTextNode('Cell'));
td.style.border = '1px solid black';
}
}
body[0].appendChild(tbl);
}
tableCreate();