Posts by Elton Carreiro • 31 points
1 post
-
3
votes3
answers3708
viewsA: What is the difference between useMemo and React useCallback?
A good way to understand the difference between useMemo and useCallback is to see that it is possible to reproduce the useCallback using a useMemo. Example: const useCallback = useCallback(() =>…