DEV Community

Discussion on: 3 React concepts I wish I knew when I started

Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto • Edited

I usually use a literal with an unique prop and the index on keys to be sure that the key is unique (e.g. "${index}//${property}"), maybe it's a bit too much xD but works well for me.

Collapse
 
alexandrricov profile image
Alex

It depends: it will not work well in case you change order, remove items or add items in other positions then at the end of the list.