useMemo
up:: React Hooks What React useCallback is for functions, useMemo is for other values.
Eg, if we have an array that we sorted, React.memo still rebuilds the component every time because arrays are JS Non-primitives.
useMemo allows us to store the value.
Of course, you also gotta use this in all parent components.
You will use React useCallback much more often though.