JSFiddle - React, Tailwind, and code Playground
HTML
<div class="border">Lorem ipsum dolor sit amet!</div>
CSS
.border {
width: 125px;
margin: 30px auto;
padding: 10px;
border: 1px dashed #adadad;
border-radius: 6px;
}
JavaScript
$('.border').hover(
function () {
$(this).css('color', 'red');
},
function () {
$(this).css('color', 'black');
}
);