Skip to main content
Frontend
Interviews
.dev
Problems
711. React key Resets State
Medium
•
...
Select the best answer.
<
Profile
key
=
{
userId
}
userId
=
{
userId
}
/>
What does changing key do?
Preserves child state
Remounts child and resets state
No effect
Throws warning
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer