In React, is it fine to use indexes for *keys*?
Not if the order of items may change, as that could reduce the performance and cause issues with component state. That's because component instances are updated and reused based on their key. If the key is an index, moving an item changes it. As a result, component state for things like uncontrolled inputs can get mixed up and updated in unexpected ways.