How does React’s reconciliation algorithm work?
React’s reconciliation algorithm compares the new Virtual DOM with the old one using a
diffing algorithm. It:
- Identifies what changed (nodes, attributes, etc.)
- Applies minimum changes to the actual DOM
- Uses keys to track list item changes efficiently