Flashcard
Keys in Reconciliation
Learn why stable keys help React reconcile lists efficiently and avoid render bugs.
Question
Why does React need keys when rendering lists, and why avoid array index as a key?
Click to reveal answer
Learn why stable keys help React reconcile lists efficiently and avoid render bugs.
Why does React need keys when rendering lists, and why avoid array index as a key?