@devtea2026/repellendus-nihil-recusandae-debitis

2.17.107 • Public • Published

npm downloads CI

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 @devtea2026/repellendus-nihil-recusandae-debitis or yarn add @devtea2026/repellendus-nihil-recusandae-debitis.
  • Import by adding import makeEventProps from '@devtea2026/repellendus-nihil-recusandae-debitis'.
  • Create your event props object:
    const eventProps = useMemo(
      () => makeEventProps(props, (eventName) => additionalArgs),
      [additionalArgs],
    );
  • Use your event props:
    return <div {...eventProps} />;

License

The MIT License.

Author

Wojciech Maj Wojciech Maj

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.17.107
    1
    • latest

Version History

Package Sidebar

Install

npm i @devtea2026/repellendus-nihil-recusandae-debitis

Weekly Downloads

1

Version

2.17.107

License

MIT

Unpacked Size

198 kB

Total Files

529

Last publish

Collaborators

  • quinterochris100