diff --git a/src/data/roadmaps/react/content/usecallback@2zrN65JZhCyNimi33g78f.md b/src/data/roadmaps/react/content/usecallback@2zrN65JZhCyNimi33g78f.md index 399b35916..f41f96140 100644 --- a/src/data/roadmaps/react/content/usecallback@2zrN65JZhCyNimi33g78f.md +++ b/src/data/roadmaps/react/content/usecallback@2zrN65JZhCyNimi33g78f.md @@ -1 +1,9 @@ -# useCallback \ No newline at end of file +# 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: + +- [@article@React Documentation on useCallback](https://reactjs.org/docs/hooks-reference.html#usecallback) +- [@article@useCallback Explained in Depth](https://kentcdodds.com/blog/usememo-and-usecallback) +- [@article@useCallback Hook: An Introductory Guide](https://dmitripavlutin.com/dont-overuse-react-usecallback/)