[Medium] 📄 Best Practices
1. Why you shouldn't use index as a key in lists and iterators?
Tại sao không nên sử dụng
indexlàm giá trịkey?
Trong các buổi phỏng vấn về framework như Vue, React, thường có các câu hỏi tương tự:
- What happens if there is no key in
v-for? - Why you shouldn't use
indexas a key inReactlists and iterators?