nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

react/Reconciliation

How React decides what actually changed, without diffing every node from scratch.

10 QuestionsAdvancedHigh Priority ~12 min read

A fully general tree-diffing algorithm is O(n³) — far too slow to run on every state update. React's reconciliation algorithm gets this down to O(n) by relying on two heuristics that hold true for almost all real UI: elements of different types produce substantially different trees (so React doesn't bother trying to diff a <div> against a <span>, it just replaces it), and keys give React a stable identity hint for items in a list across renders.

Keys are what let React tell 'this item moved' apart from 'this item was deleted and a new one was added' — without them (or with array index used as a key, which reconciliation treats as a fresh key whenever the list reorders), React can end up unnecessarily unmounting and remounting components, or worse, mismatching component state to the wrong list item. Reconciliation itself is a plain algorithm, and Fiber is what changed how it's executed — turning what used to be one uninterruptible synchronous walk into work that can be paused, resumed, or abandoned.

What you'll walk away knowing

The two core assumptions reconciliation relies on to stay O(n) instead of O(n³)
Why keys matter for list reconciliation, and why using array index as a key can cause real bugs
How reconciliation decides between updating a node in place versus unmounting and remounting it
How Fiber changed reconciliation from a synchronous recursive walk into interruptible units of work
1What is reconciliation in React?Intermediate2What is react fibre?Intermediate3What is fibre in react fiber?Intermediate4Discuss fibre lifecycle.Intermediate5Discuss stack reconciler.Intermediate6What is concurrent rendering in react?Intermediate7How does React Fiber improve the rendering performance?Intermediate8What is the purpose of the `dangerouslySetInnerHTML` attribute in React?Intermediate9When rendering a list what is a key and what is its purpose?Beginner10What are low and high-priority updates?Intermediate11What is work in progress tree in react fibre?Intermediate12Is React Fiber backward compatible with previous versions of React?Intermediate13How does React Fiber handle errors?Intermediate
All Topics
1
Basics
JSX
State and Props
Components
Function Components
2
Virtual DOM
Reconciliation
Class Components
Lifecycle functions
3
Hooks
useState
useReducer
useMemo
useContext
useCallback
useEffect
Custom Hooks
New Hooks
4
Code Sharing
HOC
Refs
Data Sharing
Events
Context API
5
Redux
Router
CSR-SSR
React APIs
ReactDOM
Strict Mode
6
Performance Optimisation
Security
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.