๐ 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 inReact
lists and iterators?