April 2017
Intermediate to advanced
414 pages
8h 14m
English
We need to modify our reducers file so that it does the following:
// TasksRedux/app/reducers/index.js
const defaultState = {
currentIndex: undefined,
...
}
...
const singleTask = (state = {}, action) => {
switch(action.type) {
case 'ADD_TASK':
return {
...
index: action.index,
}
...
}
}
The ADD_TASK case in the singleTask sub-reducer ...
Read now
Unlock full access