useMemo vs useCallback

Difference

useMemouseCallback
Cachesthe result of a functionthe function itself
Returnsa valuea function
Typical useexpensive calculation, stable objectevent handler passed to a memo child