Scenario-Based · Section 25
Scenarios: DOM, Reconciliation & Keys
8 questions. Scenario questions on render vs commit, verifying DOM updates, large lists, Fiber priorities, and how keys control component identity and state.
These scenarios test whether you can separate React's render phase from real DOM work and browser paint, and whether you understand how keys and Fiber decide what gets reused, updated or thrown away. Expect to explain both the internals and how you'd prove them with DevTools.
01How would you verify whether React actually updated the DOM?02A component re-renders, but the browser doesn't repaint. Why?03A list of 5,000 items updates every second. How does React efficiently update the UI?04You change one item in a large list, but the whole list appears to re-render. How would you investigate?05Two sibling components update at different priorities. How does Fiber handle this?06You accidentally use random keys (Math.random()) in a list. What happens internally?07Your application freezes while rendering a large dashboard. How can Fiber help solve this?08Why does changing keys cause components to lose their state?