I am using Vue v-for
for iterating over an array, like:
<div v-for="item in items">
{{ item }}
</div>
Vue tells me to have a key and recommends me to take a look at the Docs: key
.
Does that make sense to put the index in the :key
?
Example:
<div v-for="(item, index) in items" :key="index">
{{ item }}
</div>