[Medium] ๐ Best Practices
1. Why you shouldn't use index as a key in lists and iterators?โ
์
index๋ฅผkey๊ฐ์ผ๋ก ์ฌ์ฉํ๋ฉด ์ ๋๋๊ฐ?
Vue, React ๋ฑ ํ๋ ์์ํฌ ๋ฉด์ ์์ ์์ฃผ ๋์ค๋ ์ ์ฌํ ์ง๋ฌธ:
- What happens if there is no key in
v-for? - Why you shouldn't use
indexas a key inReactlists and iterators?