Scenario-Based · Section 22
Scenarios: Rendering & Batching
5 questions. Real-world performance scenarios about batching, concurrent rendering, transitions and keeping the UI responsive.
Scenario questions test whether you can diagnose a slow or janky UI, not just define a hook. Each scenario here explains the root cause, a step-by-step fix with code, and how to prove the fix worked.
01A user types in a search box while a huge table is rendering. How can React keep typing smooth?02Multiple setState calls happen in one event. How many renders occur?03An API response updates five different states. How can React optimize this?04A page freezes while rendering a large chart. How would concurrent rendering help?05A slow component blocks button clicks. How would you improve responsiveness?