use-handler. React-hook, that returns handler only once while component mounted. Your reference for a function won't be changed. It's useful for optimizations. Note: you can use useCallback hook, that is already included in react instead of custom useHandler hook. You can see example with useHandler and useCallback hooks here: https://codesandbox.io/s/vjko8kroyl

github.com/xnimorz/use-handler

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

No recent activity.