From the course: Building Modern Projects with React

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Creating Redux actions

Creating Redux actions

- [Instructor] All right, well, now that we've added Redux to our React application, the next thing that we have to ask ourselves is, what specific actions do we want to be in our application that will cause our application's data to change in some way, right? Well, as a matter of fact, we already know this. If we go take a look at our app here, we know that it's possible for users to create to-dos. So that would be a good action there. We know that it's possible for users to delete to-dos by clicking this Delete Item thing. And we also know that it's possible for users to mark to-dos as completed by clicking this button. So really, those three actions form the entire range of possibilities in our to-do list application. Obviously, in more complex applications, there are many more actions, but as I said a little bit earlier, this is one of the most important features of Redux is that it allows us to define specifically what can possibly happen in our application and how our…

Contents