What is the purpose of keys in React lists?
Virtual DOM and Reconciliation
Audio flashcard · 0:12Nortren·
What is the purpose of keys in React lists?
0:12
Keys help React identify which items in a list have changed, been added, or removed. A stable, unique key per item lets the reconciliation algorithm match elements between renders efficiently and preserve component state.