Understanding the difference between useMemo and useCallback
TLDRReact provides us with two built-in hooks to optimize the performance of our app. At first glance, it might look like their usage is quite similar, so it can get confusing about when to use each. To clear that confusion, let’s dig in and understand the actual difference and the correct way to use them both.
Table of contents
Functional components have a problem3 Comments
Sort: