What is the difference between local component state and global state?
Local State (useState) Global State (Redux/Context)
Exists within a component Shared across multiple components
Ideal for UI-level concerns Ideal for app-wide data (e.g., auth,
theme)
Cannot be accessed by
siblings
Easily accessible across app