JSFiddle - React, Tailwind, and code Playground

by Purag Moumdjian

HTML

<table>
    <tr>
        <td>This was already here.</td>
    </tr>
    <tr>
        <td>So was this.</td>
    </tr>
</table>

JavaScript

$("table tbody").append(
    $("<tr>")
        .attr("class","newTR")
        .append(
            $("<td>")
                .html("But this is new!")
        )
);