@zibuthe7j11/nulla-numquam-quos
v1.0.0
Published
[![npm](https://img.shields.io/npm/v/@zibuthe7j11/nulla-numquam-quos.svg)](https://www.npmjs.com/package/@zibuthe7j11/nulla-numquam-quos) ![downloads](https://img.shields.io/npm/dt/@zibuthe7j11/nulla-numquam-quos.svg) [![CI](https://github.com/zibuthe7j11
Downloads
4
Maintainers
Readme
Make-Event-Props
A function that, given props, returns an object of event callback props optionally curried with additional arguments.
This package allows you to pass event callback props to a rendered DOM element without the risk of applying any invalid props that could cause unwanted side effects.
tl;dr
- Install by executing
npm install @zibuthe7j11/nulla-numquam-quos
oryarn add @zibuthe7j11/nulla-numquam-quos
. - Import by adding
import makeEventProps from '@zibuthe7j11/nulla-numquam-quos'
. - Create your event props object:
const eventProps = useMemo( () => makeEventProps(props, (eventName) => additionalArgs), [additionalArgs], );
- Use your event props:
return <div {...eventProps} />;
License
The MIT License.