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

Unmounting Destroys State

When a component is removed from the tree, its state is lost—remounting creates fresh state from the initial value.

This lesson is for subscribers

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