JSFiddle - React, Tailwind, and code Playground
HTML
<div class="parent">
<div class="thing1">This div</div>
<input type="text" class="thing2" />
</div>
JavaScript
$(document).ready(function() {
$('.thing2').hover(function() {
$('.thing1').css('border', '1px solid red');
$('.thing2').mouseleave(function() {
$('.thing1').css('border', 'none');
})
});
});