JSFiddle - React, Tailwind, and code Playground

HTML

<div>
<a href="#" class="testAnchor">Click on me</a>
<div class="content">
    This is text And it is cool. Eee aye ee aye ohhh
</div>
</div>

<div>
<a href="#" class="testAnchor2">Click on me</a>
<div class="content2">
    This is text And it is cool. Eee aye ee aye ohhh
</div>
</div>

CSS

body {font-size:28px;}
.content, .content2 {font-size: 80%;}

JavaScript

$('.testAnchor').click(function() {
    $('.content').slideToggle();
});
    
$('.testAnchor2').click(function() {
    $('.content2').slideToggle();
});