New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@catchad/react-window-event

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@catchad/react-window-event

Make adding eventlistener to Window much more react way.

latest
Source
npmnpm
Version
0.0.7
Version published
Weekly downloads
11
266.67%
Maintainers
2
Weekly downloads
 
Created
Source

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;

Keywords

react

FAQs

Package last updated on 19 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts