JSFiddle - React, Tailwind, and code Playground
by avrahamcool
HTML
<div id="firstDiv" class="hidden">content</div>
<div id="secondDiv">content</div>
<div id="thirdDiv">content</div>
CSS
div:not(.hidden)
{
background-color: red;
}
div:not(.hidden) ~ div:not(.hidden)
{
background-color: white;
}