Scroll bar to top @Ionic/React

Hello everyone,

How to automatically go to top (scroll bar to top) when the page is rendered with new data…


You can use the scrollToTop() method on ion-content: ion-content: Scrollable CSS Component for Ionic App Content Areas

Can I use it when an event is fired ?

You can call the scrollToTop method on the ion-content component whenever you want, including in the callback for an event.

Thank you very much, I will try it…
Can you take a look at this issue also, I tried but didn’t find a solution: