Skip to content

React component wrapper for DOM element size sensor.

Notifications You must be signed in to change notification settings

hustcc/rc-size-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rc-size-sensor

React component for size-sensor.

Build Status npm npm

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.

About

React component wrapper for DOM element size sensor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published