April 2017
Intermediate to advanced
414 pages
8h 14m
English
Next, we need to update the TasksListContainer so that it does the following:
These are the changes I ended up with:
// TasksRedux/containers/TasksListContainer/index.js ... import { ... getListOfTasksAndIndex, } from '../../actions'; import TasksList from '../../components/TasksList'; const mapDispatchToProps = (dispatch) => { return { addTask: (text, index) => { dispatch(addTask(text, index)); }, ... getListOfTasksAndIndex: () => { dispatch(getListOfTasksAndIndex()); }, ... } } const mapStateToProps = (state, { navigator }) => { return { currentIndex: state.currentIndex, ...Read now
Unlock full access