JSFiddle - React, Tailwind, and code Playground
HTML
<div class="parent">
<div class="child">
Text Block 1
</div>
</div>
<div class="parent">
<div class="child">
Text Block 2
</div>
</div>
CSS
.parent, .child{
width:100px;
height:20px;
background:#ccc;
margin:4px 0px;
}
.color{
background:red;
color:white;
}
JavaScript
$('.parent').hover(function(){
$(this).find('.child').toggleClass('color')
});