- Install thunk and add it as a middleware to redux
- Use thunk in actions to do AJAX calls
- https://github.com/rogerwschmidt/react-redux-api-todo-frontend
- https://github.com/rogerwschmidt/react-redux-api-todo-backend
npm install redux-thunk- import
applyMiddlewarefrom redux - use
applyMiddlewareincreateReducer
- Create action to
GET_ALLitems from the backend - Trigger action in
TodoListlifecycle methodcomponentDidMount - Update action
ADDto work with the API