FresherFresher (0–1 yrs)ReactMetaFlipkart
Keys in React lists
Why are keys important when rendering lists in React?
Answers use simple, clear English.
Quick interview answer
Keys help React reconcile which items changed, were added, or removed. Unstable keys (array index with reordering) cause state bugs and poor performance. Prefer stable unique IDs from data.
Detailed answer
Keys help React reconcile which items changed, were added, or removed. Unstable keys (array index with reordering) cause state bugs and poor performance. Prefer stable unique IDs from data.
#react#basics