From the course: Building Modern Projects with React

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Adding a Redux flow

Challenge: Adding a Redux flow

From the course: Building Modern Projects with React

Start my 1-month free trial

Challenge: Adding a Redux flow

(upbeat music) - [Instructor] Now that you've seen most of the basics of incorporating Redux into a React application, it's time for a little challenge. In previous videos, we implemented the entire Redux flow. Action types, action creators and reducers for two actions, creating and removing to-dos. One of the things we haven't done yet, however, is implement this flow for marking a to-do item as completed. And that's your challenge here. Your task is to create the flow for marking the to-do as completed, including the action type and action creator, adding a case to our to-do's reducer to handle this action, adding this action to our connection logic, and finally, hooking it up so that the correct changes to the state are made when the "Mark As Completed" button is clicked. So that's your basic task. To be even more clear, here's what should happen. When the "Mark As Completed" button is clicked on a to-do item, the state…

Contents