JSFiddle - React, Tailwind, and code Playground

by scruffles

HTML

<div class="a">in A
    <div class="b">in B</div>
    in A
</div>

CSS

.a:hover .b {
    background-color: red;
}