reactweb-dev
Reconciliation
Reconciliation is React's algorithm for comparing the previous and current Virtual DOM trees to determine the minimum number of changes needed to update the actual DOM. React uses heuristics like element type comparison and the key prop to efficiently decide whether to update, replace, or remove DOM nodes. Understanding reconciliation explains why unique key props on list items matter — without them, React can't reliably track which items changed, leading to bugs and poor performance.
#react#web-dev