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.
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
fromdata.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!
Hey Simon, thanks for the comment.
It surely is much better if you can manage to have IDs from a database 👌