UNPKG

@cascadia-code/scroll-to-hash-element

Version:

Detects location.hash changes and scrolls to the element with the corresponding id. Customizable scroll behavior.

14 lines (7 loc) 188 B
# Changelog ## [2.0.0] - 2024-06-01 ### Fixed - Dropped react-router as a dependency! Works with any router (or lack thereof) now. ## [2.0.1] - 2024-06-01 ### Fixed - README update.