use-event-listener

A custom React Hook that provides a declarative useEventListener (by donavon)

Use-event-listener Alternatives

Similar projects and alternatives to use-event-listener based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better use-event-listener alternative or higher similarity.

use-event-listener reviews and mentions

Posts with mentions or reviews of use-event-listener. We have used some of these posts to build our list of alternatives and similar projects.
  • How to Listen to Events in ReactJS
    1 project | dev.to | 23 Mar 2022
    Instead of pressing these toolbar buttons, I'd like to use a keyboard shortcut to switch between the pointer mode and the drag mode. Copying Figma's button shortcuts, specifically, I would like to bind the v button and the h button keyboard keys to the pointer mode and drag mode, respectively. This functionality was achieved thanks to the use-event-listener hook. Fortunately, the React hook is simple enough to use as brief case study into how event listeners work.

Stats

Basic use-event-listener repo stats
1
354
0.0
9 months ago

donavon/use-event-listener is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of use-event-listener is JavaScript.


Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com