micro-js

micro-js/event-handler

Create an event handler with some sweeter syntax

JavaScript
3
1
No license

This library provides a declarative syntax for creating event handlers, allowing you to attach multiple handlers to a single event and filter events based on key presses. It's designed for React developers who want to write more functional and declarative event handlers, similar to how classnames simplifies conditional CSS class application. The library supports features like stopPropagation and preventDefault, and can handle complex scenarios like calling different functions based on which key is pressed.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of micro-js/event-handler

Account's avatar
Retrieve the value of a form field
Account's avatar
Safe, functional hasOwnProperty
Account's avatar
The identity function.
Account's avatar
Functional version of Array.isArray
Account's avatar
Test whether a given value is a function.
Account's avatar
Check if plain object.
Account's avatar
Takes in a keypress/keydown/keyup event and returns a chord striE.g. 'ctrl+shift+t'
Account's avatar
Map a function over a container of some kind
Account's avatar
Maps a collection of things that may be functions over a value
Account's avatar
Map of keycodes to human readable key names
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on micro-js/event-handler

Top contributors

ashaffer's profile
ashaffer
11 contributions
joshrtay's profile
joshrtay
1 contributions
axdg's profile
axdg
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet