Frontend Engineer
After sorting, the input belongs to the wrong row.
- 1Your approach
- 2The follow-up
- 3Reflect & learn
THE INTERVIEWER ASKS
The scenario
An editable list uses array indices as component keys. After sorting, text typed into one row appears beside another record. Explain the bug.
How would you approach it?
Explain your assumptions, your approach, and why you chose it.