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.

4m read time From medium.com
Post cover image
Table of contents
Functional components have a problem
3 Comments

Sort: