Back to Developer Roadmap

useCallback

src/data/roadmaps/react/content/usecallback@dgoDNDtW2_q9R9yhkXrcz.md

4.0738 B
Original Source

useCallback

useCallback is a React hook that returns a memoized version of a callback function. It's used to optimize performance by preventing unnecessary re-renders. Specifically, it helps avoid recreating functions when their dependencies haven't changed, which can be useful when passing callbacks to child components that rely on referential equality to prevent re-rendering.

Visit the following resources to learn more: