JSFiddle - React, Tailwind, and code Playground

HTML

<div class="post">
    <img src="http://members.tripod.com/chias_buttons/sitebuildercontent/sitebuilderpictures/frog52.gif" alt="" width="50px" />
    <div class="content">
        <p>here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content</p>
        <p>here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content</p>
        <p>here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content</p>
    </div>
</div>

<div class="post">
    <img src="http://members.tripod.com/chias_buttons/sitebuildercontent/sitebuilderpictures/frog52.gif" alt="" width="50px" />
    <div class="content">
        <p>here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content</p>
        <p>here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content</p>
        <p>here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content here is some content</p>
    </div>
</div>
<div class="post">
    <img src="http://members.tripod.com/chias_buttons/sitebuildercontent/sitebuilderpictures/frog52.gif" alt=""...

CSS

.content{display:none;}

JavaScript

$('img').click(function(){
   $('.down').slideUp("fast").removeClass('down');
   $(this).parent().find('.content').slideDown("fast").addClass('down');
});