renatorib / react-sizes

:left_right_arrow: Hoc to easily map window sizes to props.
722 stars 36 forks source link

Custom hook version of withSizes? #50

Open craigdanj opened 4 years ago

craigdanj commented 4 years ago

Not sure if it aligns with what you want to do with this project but since a lot of people will be moving to hooks instead of using HOCs I was wondering if it would make sense to add a custom hook version of the withSizes HOC.

That way those who prefer hooks over HOCs (like me :) ) could use it?