1.0.0 • Published 6 years ago
scrolltop-on-mount v1.0.0
scrolltop-on-mount
Set react component scroll top on mount to top of viewport, mainly useful for wrapping different pages
import withScrollTopHoc from 'scrolltop-on-mount'
class RandomComponent {
...
}
export default withScrollTopHoc(RandomComponent)
1.0.0
6 years ago