rc-size-sensor
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

rc-size-sensor

React component for size-sensor.

Install

npm i --save rc-size-sensor

Usage

import SizeSensor from 'rc-size-sensor';

  // ...

  onResize = (element) => {
    // do something
  }

  render() {
    return (
      <SizeSensor onResize={this.onResize}>
        <YourComponent />
      </SizeSensor>
    );
  }

License

MIT@hustcc.

Package Sidebar

Install

npm i rc-size-sensor

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

4.78 kB

Total Files

7

Last publish

Collaborators

  • atool