Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Immutable from 'immutable'
- const objectAssign = require('object-assign');
- const initialUserState =
- {
- }
- ;
- const BackupReducer = function(state = initialUserState, action) {
- //console.log('actiondata in reducer:' + action.data + action.type);
- switch(action.type) {
- case 'GET_BACK_LIST':
- return objectAssign({}, state, { backups: action.data });
- break;
Add Comment
Please, Sign In to add comment