use-scroll-position
use-scroll-position copied to clipboard
useScrollPosition.defaultProps does nothing
I see that useScrollPosition.defaultProps is defined for some reason. It's a hook function and not a React component, so attaching a defaultProps property to the function will not accomplish anything and is just extra noise.
You are right! It's just a part of some old implementation, we need to remove it!