JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li><a class="readmore">Read More</a>
<div class="pop">this ts the text</div>
</li>
<li>
<a class="readmore">Read More</a>
<div class="pop">this ts the text</div>
</li>
<ul>
CSS
.pop {
display:none;
}
JavaScript
$(document).ready(function () {
$(".readmore").click(function () {
$(this).siblings(".pop").slideToggle();
return false;
});
});