How to use React memoization hooks for increased performance

As React apps grow bigger and more complex, performance becomes more and more of a problem. As components become larger and contain more and more sub-components, rendering becomes slow and turns into a bottleneck.
How do we tackle this? If you haven’t used useMemo
and useCallback
, we can start with those.