JSFiddle - React, Tailwind, and code Playground

HTML

<table>
</table>
<button id="remove">Remove</button>

JavaScript

var userName = 'abcd';
Var meh = '1234';


$('#remove').click(function(){
    $('table td:contains('+userName+')').remove()
});
$("table").append("<tr><td>" + userName + "</td><td>" + meh "</td></tr>");