1.3.7 • Published 6 years ago

react-resize-render v1.3.7

Weekly downloads
18
License
MIT
Repository
github
Last release
6 years ago

react-resize-render

Build Status npm version npm

A render prop solution for tracking window resize events in a browser. Uses a single event handler for all instances of the render prop componenent to attempt to maximize perforance by limiting multiple resize events.

Getting Started

  npm install react-resize-render -S 
// using ES6 modules
  import RenderResize from 'react-resize-render';

  <RenderResize
    render={({width, height}) => {
      return (
        <div>
          {width}px - {height}px
        </div>
      );
    }}
  />

Checkout the storybook site for more examples.

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago