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');