Harry’s Blog
Notes on building software and things I learn from side projects.
- React
How React memo and useCallback Work Together
useCallback lets React reuse a function reference across renders while its dependencies remain the same. This can matter when a child component or another hook compares that reference with its previous value.