Such a great and easy to understand article Victoria! Thank you for that! One question, how did developers handle this before hooks?
If I use contexts in any project , then we are not passing a props, so there will be no need to to use callbacks right, as the component will only re-render the component if the state value which it uses changed. Am I right?
That's the article I needed! Very well explained, thanks Victoria Lo :)
Interesting hook! Well this is my first time seeing this hook in action. I'll keep note of what it does for future use.
Increase and Decrease anyway are not getting called again and again when the component gets rerendered then why did you use useCallback ?
What will happen if I use React.memo() only and not useCallback
This was super useful to me Victoria Lo.
Nikhil Patil
Currently Studying in Government Polytechnic Mumbai and Pursuing Diploma in Computer Engineering
Great source for learning useCallback! well done!