ใƒกใ‚คใƒณใ‚ณใƒณใƒ†ใƒณใƒ„ใพใงใ‚นใ‚ญใƒƒใƒ—

[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 index as a key in React lists and iterators?