This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
When a component is removed from the tree, its state is lost—remounting creates fresh state from the initial value.
You've completed the free preview. Subscribe to unlock every lesson in every course.