A nerd in books, tea, games and software.
I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.
Markdown supported · ⌘↵ to post
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?
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 ?
Nikhil Patil
Great source for learning useCallback! well done!