DEV Community

Deva I
Deva I

Posted on • Edited on

useCallback in react

✓ The useCallback Hook is used to memoize a callback function.

✓ The useCallback function only re-executes when one of its dependencies changes value.

✓ The useCallback and useMemo Hooks are similar:

  ◾ useMemo returns a memoized value.

  ◾ useCallback returns a memoized function.
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
subash_4870e66d76ac024544 profile image
subash • Edited

what an effort , this blog is really helped me to improve my knowledge , and communication skill, especially third subheading was increased my confident level as a developer, i am very lucky to see this blog , i willing to put this link in my whatsapp status.

Collapse
 
sivakumar_mathiyalagan_ profile image
Sivakumar Mathiyalagan

what an elaborated explanation..got to know better about useCallback after reading this blog