JSFiddle - React, Tailwind, and code Playground

by Brodingo

JavaScript

$('.nav a').on("click", function() {
    $(this).addClass("selected");
});