Skip to main content
Frontend
Interviews
.dev
Problems
Loading problem…
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.
Auto-advance on correct answer