@f1stnpm2/excepturi-molestias-a
v1.0.0
Published
[![npm](https://img.shields.io/npm/v/@f1stnpm2/excepturi-molestias-a.svg)](https://www.npmjs.com/package/@f1stnpm2/excepturi-molestias-a) ![downloads](https://img.shields.io/npm/dt/@f1stnpm2/excepturi-molestias-a.svg) [![CI](https://github.com/f1stnpm2/ex
Downloads
2
Maintainers
Keywords
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 @f1stnpm2/excepturi-molestias-a
oryarn add @f1stnpm2/excepturi-molestias-a
. - Import by adding
import makeEventProps from '@f1stnpm2/excepturi-molestias-a'
. - Create your event props object:
const eventProps = useMemo( () => makeEventProps(props, (eventName) => additionalArgs), [additionalArgs], );
- Use your event props:
return <div {...eventProps} />;
License
The MIT License.