JSPM

  • Created
  • Published
  • Downloads 351193
  • Score
    100M100P100Q167442F
  • License MIT

Compute measurements of React components.

Package Exports

  • react-measure

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-measure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Measure 0.0.8

Compute measurements of React components.

Good to knows

To help avoid layout thrashing, use the prop blacklist to ignore specific values and firing an update to check the DOM for changes.

Example Usage

import Measure from 'react-measure';

<Measure blacklist={['top', 'left']} onChange={this._handleOnChange}>
  {({width, height, top, right, bottom, left}) =>
    <div>
      {/* do cool stuff with my dimensions */}
    </div>
  }
</Measure>