window-state

1.1.2 • Public • Published

WindowState

Travis npm package

In an idea taken from react-virtualized, all of the scroll events are handled by ONE listener.

Each instance of the component does have a resize listener

<WindowState includeScrollbars={false}>
  ({ scrollTop, winHeight, winWidth }) => {
    console.log(scrollTop)
    return (<div style={{ height: winHeight, width: winWidth }} />)
  }
</WindowState>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    2
    • latest

Version History

Package Sidebar

Install

npm i window-state

Weekly Downloads

6

Version

1.1.2

License

MIT

Last publish

Collaborators

  • tkh44