How to add a scroll event to a header in Gatsby
问题 Summarize the problem The goal is for the styling of the header/navbar to change as the viewer scrolls down the page. The header is already sticky/fixed in place, but I want the background/text color to change once the user scrolls down. All other components are adhering to the styling that I want so far, but trying to figure out this header has really been confusing for me. Describe what you've tried I tried to use a hook that I found online here https://www.ibrahima-ndaw.com/blog/build-a