JSFiddle - React, Tailwind, and code Playground
by der_robert
HTML
<div class="hover"><img src="http://placehold.it/350x150"></div>
<div><p class="text">lalala</p></div>
JavaScript
$('.hover').on("mouseover",function() {
$('.text').next().css("color","red");
console.log("sdgf");
});
$('.hover').on("mouseout",function() {
$('.text').next().css("color","#000");
});