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;
}