Understanding useMemo and useCallback

from blog Josh Comeau's blog, | ↗ original
↗ original
What's the deal with these two hooks?! Lots of devs find them confusing, for a whole host of reasons. In this tutorial, we'll dig deep and understand what they do, why they're useful, and how to get the most out of them.