JSFiddle - React, Tailwind, and code Playground

by not important

HTML

<ul>
    <li>
        <a href="#">Alpha</a>
    </li>
    <li>
        <a href="#">Bravo</a>
    </li>
    <li>
        <a href="#">Charlie</a>
    </li>
</ul>

CSS

ul,
li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    margin-bottom: 16px;
}

a {
    text-decoration: none;
    border-radius: 3px;
    padding: 3px;
}

a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

JavaScript

$("ul a").click(function (jqEvent) {
    jqEvent.preventDefault();
    
    alert($(this).text());
});