JSFiddle - React, Tailwind, and code Playground
HTML
<div id="LOCATION">
<ul>
<li><a href="#" >Location ancien</a></li>
<li><a href="#">Location neuf</a></li>
</ul>
</div>
CSS
.active{ border: solid 2px blue;}
JavaScript
$('a').on('click', function(e){ e.preventDefault();
console.log('coucou')
$("#LOCATION a:contains('Location ancien')").parent().addClass('active');
})