JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">
<div>Click Me</div>
</div>
JavaScript
$(function () {
$('#test').children().click(function(){
alert('hello');
});
$('#test').children().off('click');
});
<div id="test">
<div>Click Me</div>
</div>
$(function () {
$('#test').children().click(function(){
alert('hello');
});
$('#test').children().off('click');
});