Solid reasoning – with a clear example – of the potential dangers of using an array index as the key
value in ReactJS. Not something I'd ever considered (and something I do a lot) but makes sense.
- Source
- Link to Original 🔗
- Published
- Categories
- JavaScript
- Tags
- React,key,index,loop,array
Explore Other Notes
⬅ Newer
Super Tiny Icons
A collection of hyper-optimised SVG logos for social media, popular websites, and tech companies. Every logo, whether in PNG or SVG form, is less than 1kb in size and have a base scale of […]
Older ➡
Cube CSS
I think there's some real merit to Andy's ideas behind Cube CSS. It's a middle-ground between everything-in-JS or BEM that throw out the cascade entirely and the free-for-all that can happen if you […]
- Solid reasoning – with a clear example – of the potential dangers of using an array index as the key value in ReactJS. Not something I'd ever considered (and something I do a <em>lot</em>) but […]
- Murray Adcock