JSFiddle - React, Tailwind, and code Playground

HTML

<div class="hovertest">test</div>

<div class="test">test2</div>

CSS

div {
    width:200px;
    height:100px;
    background-color:#B22;
}

JavaScript

$("div.hovertest").hover(
      function () {
        $(".test").fadeOut();
      }, 
      function () {
        $(".test").fadeIn();
});