JSFiddle - React, Tailwind, and code Playground

by gRoberts

HTML

<a href="#1" class="a">1</a><a href="#2" class="a">2</a>

JavaScript

function test(e) {
    var $this = $(e.currentTarget);
    $this.css('color', 'green');
}
$('.a').click(test);