JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td onClick="disconnectHandler();"><span id="testin">Hello</span></td>
</tr>
</table>
JavaScript
function disconnectHandler()
{
alert("Hi Hello");
$("#testin").parent().prop('onclick',null);
}