JSFiddle - React, Tailwind, and code Playground

by jasongennaro

HTML

<div id="a">
    <span id="first">This is the first line (read more)</span>
    <br />
    <span id="rest">This is the rest of the text</span>
</div>

JavaScript

$('#rest').hide();

$('#first').click(function(){
    $('#rest').show();        
});