Redux Fundamentals
-
This lesson introduces Redux fundamentals and explains core concepts such as store, actions, and reducers.
Redux Fundamentals
What is Redux?
Redux is a state management library used for predictable global state.
Especially useful for:
Large applications
Complex data flow
Multiple components sharing state
Core Redux Concepts
Redux works on three main principles:
Store
Holds the entire application state
Single source of truth
Actions
Plain JavaScript objects
Describe what happened
{ type: "ADD_TODO" }
Reducers
Pure functions
(state, action) => newState