0.0.7 • Published 6 years ago

@catchad/react-window-event v0.0.7

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

react-window-event

Install

yarn add @catchad/react-window-event

Usage

import React, { Component } from 'react';
import ReactWindowEvent from '@catchad/react-window-event';

class WindowEvent extends Component {
  handleScroll = e => {
    console.log(e);
  };
  render() {
    return (
      <div>
        <ReactWindowEvent type="scroll" listener={this.handleScroll} />
      </div>
    );
  }
}

export default WindowEvent;
0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago