JSFiddle - React, Tailwind, and code Playground
HTML
<div id="sh-ty-container">
<div>hello</div>
</div>
CSS
#sh-ty-container div { background-color:yellow; visibility:visible;}
JavaScript
$("#sh-ty-container > div:visible").css('background-color','red');