Dan Abramov has opened an RFC proposing the addition of a useEvent hook to React. It's meant to allow for this change in your codebase: - const onClick = useCallback(() => console.log("Hello", name), [name]); + const onClick = useEvent(() => console....
blog.mrcljx.dev5 min read
No responses yet.