Understanding useCallback in Reactjs
The useCallback hook memoizes the function itself, not its return value. useCallback caches the function reference A function declared inside a component gets re-created on every render, similar to a variable. The difference is, it gets rendered with a different...