useEffect.dev
← Back to lessons

Lesson 8Optimizing performance with useMemo and useCallback

React rerenders a functional component each time a prop or a local state is updated. If that happens frequently and some values calculation is heavy on CPU or memory, performance issues might occur.