Update Detailed Explanation for useCallback Hook in React Documentation usecallback@2zrN65JZhCyNimi33g78f.md (#6237)

* Update usecallback@2zrN65JZhCyNimi33g78f.md

this is an update for the useCallback explanation on roadmap.sh

* Update src/data/roadmaps/react/content/usecallback@2zrN65JZhCyNimi33g78f.md

---------

Co-authored-by: dsh <daniel.s.holdsworth@gmail.com>
pull/6242/head
Glen Miracle 8 months ago committed by GitHub
parent 331c45446c
commit 068a896caf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      src/data/roadmaps/react/content/usecallback@2zrN65JZhCyNimi33g78f.md

@ -1 +1,9 @@
# useCallback # useCallback
`useCallback` is a React hook that returns a memoized version of a callback function. It's used to optimize performance by preventing unnecessary re-renders. Specifically, it helps avoid recreating functions when their dependencies haven't changed, which can be useful when passing callbacks to child components that rely on referential equality to prevent re-rendering.
Visit the following resources to learn more:
- [@article@React Documentation on useCallback](https://reactjs.org/docs/hooks-reference.html#usecallback)
- [@article@useCallback Explained in Depth](https://kentcdodds.com/blog/usememo-and-usecallback)
- [@article@useCallback Hook: An Introductory Guide](https://dmitripavlutin.com/dont-overuse-react-usecallback/)

Loading…
Cancel
Save