JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div-one">test</div>
<div id="div-two">test2</div>
CSS
div { width: 50px; height: 50px; }
JavaScript
$(document).on("hover", "#div-one", function() {
$("#div-two").css("background-color", "yellow");
}).on("mouseout", "#div-one", function() {
$("#div-two").css("background-color", "white");
});