While reviewing React reconciliation keys, a component unexpectedly retains old local state. Which action best addresses the problem?
Answer options
- A. Use the persistent row identifier
- B. Replace index keys with entity keys
- C. Key the form by user identifier
- D. Change its key when identity changes