uclaacm/recursion-lab

🐾 Minor Update: Reset to Top of Page upon Page Navigation

Closed this issue · 0 comments

Context

Because the Prev and Next nav buttons are at the bottom of the screen, when the user navigates to the next page, they stay at the bottom of the page.

Problem

It should bring them to the top of the page where the start of the next problem will be.

Proposed Solution

On route change, have the scroll reset back to the top: Dev.to React Scroll Solution