Understanding React.useCallback and React.useMemo
React.useCallback
Purpose: Memoizes a function reference to prevent its recreation on every re-render.
Why Needed: When a component re-renders, all functions inside it are recreated. If such a function is passed as a prop to a child component that ...
asyncjscript.hashnode.dev4 min read