use-scroll-position icon indicating copy to clipboard operation
use-scroll-position copied to clipboard

useScrollPosition.defaultProps does nothing

Open ckknight opened this issue 5 years ago • 1 comments

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.

ckknight avatar Oct 20 '20 22:10 ckknight

You are right! It's just a part of some old implementation, we need to remove it!

n8tb1t avatar Oct 22 '20 12:10 n8tb1t