JSFiddle - React, Tailwind, and code Playground
by grant
HTML
<div>This is a test</div>
<div>Another Div</div>
JavaScript
$('div:contains("Another")').css('background-color', 'red');
by grant
<div>This is a test</div>
<div>Another Div</div>
$('div:contains("Another")').css('background-color', 'red');