JSFiddle - React, Tailwind, and code Playground
by 규연 황
HTML
<div class="demo active">fsdjfksd</div>
<p class="text">dfdsfs</p>
CSS
.demo:not(active) + .text {
background: red;
}
by 규연 황
<div class="demo active">fsdjfksd</div>
<p class="text">dfdsfs</p>
.demo:not(active) + .text {
background: red;
}