Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc's: missing information about using useCallback for Custom Hooks #27726

Closed
yuriystasiv opened this issue Nov 18, 2023 · 1 comment
Closed

Comments

@yuriystasiv
Copy link

Here mentioned, that it's recommended to use useCallback for any functions inside Custom Hooks: https://react.dev/reference/react/useCallback#optimizing-a-custom-hook

But on the page about Custom Hooks, this information about useCallback is missing: https://react.dev/learn/reusing-logic-with-custom-hooks

Suggestion: Add information about useCallback on the page about Custom Hooks

@yuriystasiv
Copy link
Author

Duplication of: #27727

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant