A React component re-renders too often, and the UI is lagging. How would you find the cause, and how would you fix it?
~4 min by voice
How to approach it
They're checking whether you understand how re-renders work in React and can first measure the problem with tools and then fix it precisely — through component structure, memoization, splitting context — rather than blindly wrapping everything in memo.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.