rafgraph / react-router-hash-link

Hash link scroll functionality for React Router
https://react-router-hash-link.rafgraph.dev
MIT License
732 stars 62 forks source link

Update README.md #81

Closed EliRobinson closed 3 years ago

EliRobinson commented 3 years ago

Based on MDN documentation of scrollIntoView the options for behavior are auto and smooth not instant.

Updating documentation to reflect that for users who read this for insight into how to write a custom scroll function (for things like offset for example).

https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#parameters

rafgraph commented 3 years ago

Thanks! Closes #82