Redux
Beginner

Redux Core Concepts

Deep dive into actions, reducers, store, and dispatch - the building blocks of Redux.

20 min
3 sections
actions
reducers
store
1
2
3

01. Actions

Section 1 of 3

Actions are plain JavaScript objects that represent an intention to change state. They must have a type property and can carry additional data.

typescript
// Action examples
const addTodoAction = {
  type: 'todos/add',
  payload: {
    text: 'Learn Redux Toolkit',
    completed: false
  }
};

const removeTodoAction = {
  type: 'todos/remove',
  payload: { id: 1 }
};
Back to Course