Scenario-Based · Section 24
Scenarios: Memoization & Re-renders
9 questions. Real-world debugging scenarios around React.memo, useMemo, useCallback, bail-outs and runaway re-renders.
Interviewers love re-render puzzles because they show whether you understand how React decides what to render, not just which hook to reach for. These scenarios cover why memoization fails, when it backfires, and how the React Compiler changes the picture.
01A child wrapped with React.memo still re-renders. Why?02You used useMemo everywhere, but performance became worse. Why?03A callback prop causes unnecessary renders. How would you fix it?04Expensive calculations execute on every render. How would you optimize them?05A dashboard contains many charts. Which optimization techniques would you apply?06When would removing useMemo actually improve performance?07A parent component re-renders, but none of its props changed. Will the child re-render?08A state update doesn't change the UI. Will React still perform reconciliation?09Updating one input causes 100 components to render. Why?