Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avocode/react-resizer

A React component for resizing HTML elements.
https://github.com/avocode/react-resizer

Last synced: about 2 months ago
JSON representation

A React component for resizing HTML elements.

Awesome Lists containing this project

README

        

React Resizer
=============

![React Resizer example](https://cldup.com/ZdLk2YMH3V.gif)

A React component for resizing HTML elements.

## Installation:

`npm install react-resizer`

## Usage:

For a more comprehensive use case, please check the example folder in this repository.

```
'use strict';

let React = require('react');
let Resizer = require('react-resizer');

let App = React.createClass({
displayName: 'App',

_handleResize: function(diff) {
return console.log('resizing');
},

_handleResizeStart: function() {
return console.log('resize start');
},

_handleResizeEnd: function() {
return console.log('resize end');
},

render: function() {
return (

Right sidebar


)
}
});

React.render(, document.getElementById('content'));
```