Performance · senior
A step-by-step React performance process
Senior performance answers follow a process: reproduce and measure, find which kind of cost it is (too many renders, expensive renders, too much DOM, network, main-thread JavaScript), fix the structure first, then verify with numbers from real users.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Measure: React DevTools Profiler (flamegraph, ranked chart, "why did this render"), Chrome Performance panel with React Performance Tracks (Scheduler and Components tracks, React 19.2), and field data (INP, LCP) from RUM or CrUX.
- Classify: re-render storms, a single expensive render, a huge DOM (lists), layout thrashing, big bundles/hydration cost, slow network/waterfalls, or non-React JavaScript (JSON parsing, heavy loops).
- Fix in order: colocate state and split context; virtualise long lists; memoize or use the Compiler;
useTransition/useDeferredValuefor non-urgent updates; move heavy work to a Web Worker; code-split. - High-frequency data (50 updates/second): keep it in a store outside React, flush to React at most every animation frame or 100 to 250 ms, and let each cell subscribe to its own slice with selectors.
- Memory leaks: missing cleanups (listeners, intervals, sockets), ever-growing arrays, module-level caches, third-party widgets not destroyed. Find them with heap snapshots and detached DOM nodes.
- Verify: before/after numbers, field metrics, and guardrails (performance budgets, CI checks, bundle size limits).
- Say what you would NOT do: "memo everything" without measuring.
The red pen
Common traps: mistake → fix
Mistake: "Use useMemo everywhere" as the first answer
Fix: interviewers want measurement and a process.
Mistake: "Lighthouse is enough"
Fix: lab data misses real-device INP; use field data.
Mistake: "React is slow, so rewrite in vanilla"
Fix: usually the problem is structure or data volume.
Easy to hard
Questions interviewers ask, easy to hard
- Explain how you would optimise a React app suffering from frequent re-renders. Step by step.
- What do you look at in the Profiler flamegraph?
- The bottleneck is a 3 MB JSON parse, not React. Now what?
- How would you handle 50 price updates per second in a table?
- How do you prove the fix worked in production?
Practise
Practise with these questions
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.