Planning the Redux conversion
The approach we will take in converting our app to Redux will involve multiple steps:
- First, we should begin by scaffolding a Redux project by creating a store, wrapping the
AppContaineraround aProvider, and creating some basic actions and reducers to handle very basic functionality--we can worry about persistent storage later. - Then, we will begin converting the
TasksListcomponent to Redux by creating aTasksListContainerand mapping our actions and state tree to theTasksListcomponent. Any other components from when we builtTasksin Chapter 1, First Project - Creating a Basic To-Do List App, and Chapter 2, Advanced Functionality and Styling the To-Do List App, will remain untouched for the time being. - Afterwards, we will modify the
TasksListcomponent to take advantage of its container by removing all component-unspecific logic from it. - We will repeat this series of steps for the
EditTaskcomponent. - Finally, we should address the asynchronous calls to the...