JSFiddle - React, Tailwind, and code Playground

by Erik Gillespie

HTML

<div class="main">
    <div class="child"></div>
</div>
<div class="msg">show this</div>

CSS

.child{
    width:50px;
    height:50px;
    background:red;
}

.msg{
    display:none;
}

JavaScript

jQuery(".child").hover(function(){
    jQuery(".msg").show();
}, function(){
    jQuery(".msg").hide();   
});