Concept Flow - Why lifecycle hooks run code at key moments
Component Created
onMount Hook Runs
Component Rendered in DOM
User Interaction or State Change
Reactive Updates or onDestroy Hook
Component Removed from DOM
Lifecycle hooks run code at key moments like when the component mounts, updates, or unmounts to manage side effects and cleanup.