Skip navigation
❌ Avoid resetting state when prop changes in an effect.
0:00 / 0:11

❌ Avoid resetting state when prop changes in an effect.

George Moller

@_georgemoller118K followers

Visit on X

101,491 views

❌ Avoid resetting state when prop changes in an effect. ✅ Instead, use the key prop to tell react what makes the component reset its state.

Comments

Comments from the original post on X (Twitter)

No comments yet