JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#" id="showMore">Before</a>
JavaScript
$('#showMore').click(function() {
$(this).toggle(
function () {
$(this).html('<a href="#">Before</a>');},
function () {
$(this).html('<a href="#">After</a>');
});
});