Testing and implementing an in-page scroll link in React
Smooth scroll between sections of the same webpage provides a seamless and pleasant experience for visitors, but how can we test and better implement a component that is easily reusable in other places of the codebase? The solution suggested by this post uses Jest, Testing Library, and React.