DEV Community

Discussion on: How to render a list with React

Collapse
 
zwacky profile image
Simon Wicki

Great dive into rendering lists, Enzo.

I consider using UUIDs for an ID a bit overkill, but correct non the less.
As long as the index from data.map(item, index) isn't used for the key attribute, which has unwanted side effects, all is fine. I mention this, because I've made that mistake myself and have seen it in other code bases, too.

Keep 'em posts coming!

Collapse
 
ziratsu profile image
Ustariz Enzo

Hey Simon, thanks for the comment.
It surely is much better if you can manage to have IDs from a database 👌