JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <a class="answer" href="#a">link 1</a>
    <a class="answer" href="#b">link 2</a>
</div>

CSS

a {
    display: block;
    background-color: #cad;
    padding: 10px;
    margin: 10px;
}
a:hover {
    background-color: red;
}

.container {
    height: 200px;
}

JavaScript

$('.answer').on('mouseover',function(e){
	alert('asd');
})