Its not so much performance thats the issue with using the array index as a key. The problem is that when you remove an item from the array, the same index doesnt point to the same item anymore, which leads to wonky UI behavior (the wrong item disappearing from the interface). If you are not removing items from the array or otherwise change the order of the items in the array, there is no problem with using the array index as key.
As a Digital Marketer at iFour Technolab. is a Microsoft Solutions Certified custom software, product, and Add-in development company with offices in the USA, Netherlands, Australia, and In India.
Its not so much performance thats the issue with using the array index as a key. The problem is that when you remove an item from the array, the same index doesnt point to the same item anymore, which leads to wonky UI behavior (the wrong item disappearing from the interface). If you are not removing items from the array or otherwise change the order of the items in the array, there is no problem with using the array index as key.
Maybe I agree with this. Thank you so much for sharing your thoughts.