JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="first"></div>
<div class="second"></div>
</div>
CSS
.container {
width: 100px;
}
.first {
width: 100px;
height: 100px;
background-color: gray;
}
.container:hover > .second {
display:block;
}
.second {
width: 100px;
height: 100px;
background-color: red;
display:none;
}