Course contentsShow
React
Lesson 366 of 2,39610. useState BasicsPro lesson

The Key Prop Resets State by Changing Identity

Changing a component's key forces React to unmount the old instance and mount a new one with fresh state.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.