1.2.16 • Published 27 days ago

@swenkerorg/possimus-ullam-laudantium v1.2.16

Weekly downloads
-
License
MIT
Repository
github
Last release
27 days ago

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 @swenkerorg/possimus-ullam-laudantium or yarn add @swenkerorg/possimus-ullam-laudantium.
  • Import by adding import makeEventProps from '@swenkerorg/possimus-ullam-laudantium'.
  • 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

1.2.16

27 days ago

1.2.15

28 days ago

1.2.12

1 month ago

1.2.13

1 month ago

1.2.11

1 month ago

1.2.14

29 days ago

1.2.10

1 month ago

1.2.9

1 month ago

1.2.8

1 month ago

1.2.7

1 month ago

1.1.7

1 month ago

1.0.7

1 month ago

1.0.6

1 month ago

1.0.5

1 month ago

1.0.4

1 month ago

1.0.2

1 month ago

1.0.3

1 month ago

1.0.1

1 month ago

1.0.0

1 month ago