{"library":"react-event-listener","type":"library","category":null,"description":"react-event-listener is a lightweight React component that offers a declarative way to manage global DOM event listeners, specifically targeting `window` and `document`. It leverages React's component lifecycle to automatically bind and unbind events, preventing common memory leaks and simplifying event management for global scopes. The current stable version is `0.6.7`, and releases are infrequent, primarily focused on maintenance and compatibility updates rather than new features, indicating a mature and stable library. A key differentiator is its `withOptions` utility, allowing developers to configure standard `addEventListener` options like `passive` and `capture` declaratively. It aims to solve the problem of imperatively adding and removing global event listeners by integrating them seamlessly into the React component tree.","language":"javascript","status":"maintenance","version":"0.6.7","tags":["javascript","react","event","listener","binding"],"install":[{"cmd":"npm install react-event-listener","imports":["import EventListener from 'react-event-listener';","import { withOptions } from 'react-event-listener';","import EventListener from 'react-event-listener';"]},{"cmd":"yarn add react-event-listener","imports":[]},{"cmd":"pnpm add react-event-listener","imports":[]}],"homepage":null,"github":"https://github.com/oliviertassinari/react-event-listener","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-event-listener","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-event-listener/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}