Miss any of our Open RFC calls?Watch the recordings here! »

react-resize-width

0.2.2 • Public • Published

react-resize-width

Be notified when the value of the document.body changes efficiently with one event listener


Install

$ npm install react-resize-width --save

Usage

import ResizeWidth from 'react-resize-width'
 
render () {
  return (
    <ResizeWidth
      onResize={this.handleResize}
    />
  )
}

API

Param Type args required
onResize Function value, event true
parentElement ref null false

MIT © Jack Hanford

Install

npm i react-resize-width

DownloadsWeekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • avatar