JSFiddle - React, Tailwind, and code Playground
HTML
<table border="1">
<tr>
<td>1</td><td>1</td>
</tr>
</table>
<input type="button" value="Add" />
JavaScript
var html;
setInterval(function() {
var table = $('table');
if($('table').html() != html){
alert('Changed!');
html = $('table').html();
}
}, 500);
$('input').on('click', function(e){
$('table').append('<tr><td>1</td><td>1</td></tr>');
});