Make Event Props
make-event-props
Returns an object with on-event callback props curried with provided args.
Utilities
react
event
event props
make-event-props
Utilities
javascript
npm
frontend
open source
ui
Stars
9
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install make-event-propsCode example
import { useMakeEventProps } from "make-event-props";
export function Example() {
const value = useMakeEventProps();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by Wojciech Maj
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub