Learn useCallback react hook | useCallback hook explained in 15 minutes

Опубликовано: 14 Ноябрь 2022
на канале: Rajesh Bhattarai
157
12

useCallback() is a hook that helps us to improve the react component performance by memoizing or caching a function between re-renders.
The useCallback() hook returns a memoized callback function which is passed as a prop to the child component. This means that instead of recreating the function on every re-render, we can use the same function between renders, and by doing so we can prevent unnecessary renders.

React memoization:    • React memoization explained in the ri...  

Connect with me:
Twitter:   / izrajesh  
Instagram:   / irajeshbhattarai  
Medium:   / rajeshi  
Website: https://rajeshbhattarai.com/


#reacthooks
Disclaimer:
All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.