JSFiddle - React, Tailwind, and code Playground
HTML
<span id='a'>passe o mouse em mim</span>
<div id='b'>b</div>
CSS
.azul{background-color: blue;}
JavaScript
$('#a').hover(function(){
$('#a').toggleClass('azul'); // muda a cor do texto em B quando A estiver hover
$('#a').text('novoValor'); // muda o valor de B quando A estiver hover
});