JSFiddle - React, Tailwind, and code Playground
HTML
<table id="table">
<tr>
<td><input type="text" id="filter1" /></td>
</tr>
<tr>
<td class="col1">John Smith</td>
</tr>
<tr>
<td class="col1">Jane Smith</td>
</tr>
</table>
JavaScript
$(function() {
$('#filter1').change(function() {
$("#table td.col1:contains('" + $(this).val() + "')").parent().show();
$("#table td.col1:not(:contains('" + $(this).val() + "'))").parent().hide();
});
});