I have a button that when I click it should go to another page and it works, but once it navigates to another page it displays the page from the bottom even though it should display the page's beginning. How can I fix it?
How can I solve this problem?
P粉5641921312023-09-13 19:38:35
On click in your handleseemore you can add window.scrollTo(0, 0); this will scroll to the top