scrolltop-on-mount

1.0.0 • Public • Published

scrolltop-on-mount

Travis npm package Coveralls

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)

Package Sidebar

Install

npm i scrolltop-on-mount

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

21.1 kB

Total Files

7

Last publish

Collaborators

  • hanford