Scroll to Hash in Gatsby
Updated: August 1, 2020The useScrollToHash
hook uses the location
prop from a Gatsby page to scroll to a specific element on the page. Then, it adds a hash to the URL.
The useScrollToHash
hook uses the location
prop from a Gatsby page to scroll to a specific element on the page. Then, it adds a hash to the URL.