This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
When a key changes, React unmounts the old element and mounts a new one, destroying state and triggering full lifecycle.
You've completed the free preview. Subscribe to unlock every lesson in every course.