air-with-window-size
v1.0.16
Published
Higher-Order ReactJS withWindowSize function, designed for AIR's myair.io ecosystem
Downloads
16
Readme
air-with-window-size
withWindowSize(ComponentToWrap)
Returns wrapped component plus windowWidth
and windowHeight
additional props referring to width and height window, as viewvport.
Includes documentWidth
and documentHeight
props referring to document width and height.
Includes componentWidth
and componentHeight
props referring to component width and height.
Props are updated every time a resize window event, filtered with a throttle, will occur.