r/reactjs•
unicornbabyy1

How to make the page remember the focus when going back?

Needs Help

In a project that I'm working on I want to make the page remember the focus when going back. For example if I have a table with data eg 100 rows when clicking on a row it will redirect to the details screen page of that row that was clicked. When going back it redirects to the top of the page but I don't want that. How can I make it go back exactly it was before clicking?

I need suggestions for the best practices on this

Posted Apr 1, 2025, 10:40 AM UTC

2115
Loading comments…