0
Explain how React’s double buffering model works with Fiber.
subina kallyani
hard
1completed
27
Answer
React maintains two fiber trees:
Current tree: what’s committed to the DOM.
Work-in-progress tree: being built in memory.
On commit, React swaps the pointers — the new tree becomes current, and the old one is reused for the next render. This double buffering allows React to prepare updates off-screen and commit them atomically, avoiding partial UI states.
Click to Reveal Answer
Tap anywhere to see the solution
Revealed
Comments0