ScrollSpy React Component - Automatically update navigation components based on scroll position to indicate which link is currently active in the viewport.