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
AppContainer
around 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
TasksList
component to Redux by creating aTasksListContainer
and mapping our actions and state tree to theTasksList
component. Any other components from when we builtTasks
in 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
TasksList
component to take advantage of its container by removing all component-unspecific logic from it. - We will repeat this series of steps for the
EditTask
component. - Finally, we should address the asynchronous calls to the...