I have a div with many `<p>` and `<span>` inside, is there any example of how to create a show more/less button with ReactJS to adjust the size of a div?

I have tried to install npm read more and npm truncate, but it seems not to solve my problem. Because I have to adjust the size of a div and the text in the button on click in React.

Thanks!