arrow_backBACK TO DRILLS
Black Belt - Hardreconciliation-keysPREMIUM
Changing the Key Prop on a Component
A component uses a changing key like this:
//REACT_MODULE
<Profile key={userId} userId={userId} />What is the main advantage of using a changing key to reset component state?