Skip to content

michaelfarrow/react-component-resize-observer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Component Resize Observer

Performant component resize observer

Install

npm install react-component-resize-observer --save

Demo

http://weyforth.github.io/react-component-resize-observer/

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import ResizeObserver from 'react-component-resize-observer';

class App extends React.Component {
    render() {
        return (
            <ResizeObserver
                tag={string}
                onResize={func}
            >
                your contents here...
            </ResizeObserver>
        );
    }
}

ReactDOM.render(<App />, document.body);

License

MIT.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published