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 - React.js Tutorial
From the course: Building Modern Projects with React
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
-
-
-
-
-
-
-
-
(Locked)
Why do we need Redux?2m 33s
-
(Locked)
How does Redux work?4m 35s
-
(Locked)
Adding Redux to a React app4m 57s
-
(Locked)
Creating Redux actions4m 17s
-
(Locked)
Creating reducers4m 27s
-
(Locked)
Loading data from the store5m 7s
-
(Locked)
Dispatching Redux actions7m 10s
-
(Locked)
Adding action payloads2m 46s
-
(Locked)
Challenge: Adding a Redux flow1m 1s
-
(Locked)
Solution: Adding a Redux flow2m 56s
-
(Locked)
Redux DevTools4m 35s
-
(Locked)
-
-
-
-
-
-