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.
Challenge: Using Thunks to update server resources - React.js Tutorial
From the course: Building Modern Projects with React
Challenge: Using Thunks to update server resources
(bright electronic music) - [Instructor] All right, well, at this point we've created thunks for creating to-dos, deleting to-dos, and loading to-dos, so the last one that you're going to have to do here is this markTodoAsCompleted action, which you're going to turn into a thunk, and that is going to be your challenge here. So, this challenge should take maybe about five to 10 minutes to complete, and once you've given it a try, you can feel free to move on to the next video where I'll walk you through how I solve the challenge, so best of luck and I'll see you in the Solution Video.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Why do we need Redux-Thunk?1m 49s
-
(Locked)
How does Redux-Thunk work?1m 47s
-
(Locked)
The Todos API4m 6s
-
(Locked)
Keeping track of the loading state4m 8s
-
(Locked)
Loading data with Thunks10m 35s
-
(Locked)
Refactoring the to-dos reducer6m 25s
-
(Locked)
Using Thunks to create server resources7m 56s
-
(Locked)
Using Thunks to delete server resources5m 30s
-
(Locked)
Challenge: Using Thunks to update server resources38s
-
(Locked)
Solution: Using Thunks to update server resources3m 47s
-
(Locked)
-
-
-
-