JSFiddle - React, Tailwind, and code Playground

by praveen_jegan

HTML

<button id="addProduct">Add Product</button>
<div id="someContainer"></div>

CSS

table td{

    border: 1px solid #ccc;
}

JavaScript

$("#addProduct").click(function () {
    $("<table />").append($("<tr><td>1<td /><td>2<td /><td>3<td /><td>4<td /><td>5<td /></tr>")) .appendTo("#someContainer");

});