CodeZettaInterview Hub

Vue.js · Directives · Mid-Level · Best Practice

v-for key best practices?

Short Interview Answer

Always provide a stable unique key; avoid index when list reorders/filters.

Detailed Explanation

Keys preserve component state correctly across patches.

Did you know this answer?