The application displays three selectable developers.
Each row maintains its own selected state. The user can also reverse the order of the developers.
Selecting a developer works correctly until the list is reordered. After reversing the list, the selected state can appear on the wrong developer.
For example:
- Select
Alice.
- Alice correctly shows
Selected.
- Reverse the list.
- Alice should still be selected.
- Instead, another developer may now appear selected.
Fix the rendering logic so component state stays associated with the correct developer when the list order changes.