JSFiddle - React, Tailwind, and code Playground
by umer qureshi
HTML
<script src="https://code.jquery.com/jquery-1.12.3.js"></script>
<h2>
foo
</h2>
<h2>
boo
</h2>
JavaScript
$('h2').each(function() {
if ($(this).text().toString().trim() == 'foo') {
$(this).hide()
}
});