Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.
Exercise 1 of 1
Apply memo, useCallback, and useMemo together to eliminate unnecessary re-renders in a real dashboard.
FilterBar renders: 1
StatsSummary renders: 1
This component receives no props — it should never re-render after mount.
Click any filter. Both FilterBar and StatsSummary flash — StatsSummary has no props and should be completely stable.
Multiple choice — select an answer to see the explanation.
A component is wrapped in React.memo but still re-renders on every parent state change. What is the most likely cause?