JSFiddle - React, Tailwind, and code Playground
HTML
<div class="top">here is some text </div>
<table class="middle">
...
</table>
<div class="bottom">...</div>
JavaScript
txtWord = $('.top').text().split('text')[1]
if(txtWord){
alert("div show");
}else{
alert("div hide");
}