Is this redux reducer OK
问题 Is this reducer OK: function someReducer(state = initialState, action) { if (action.type === SOME_ACTION) { const newState = Object.assign( {}, state ); // ... // doing whatever I want with newState // ... return newState; } return state; } and if is OK, why we need all those immutable libraries to complicate our lives. p.s Just trying to comprehend Redux and immutability 回答1: export default function (state = initialState, action) { const actions = { SOME_ACTION: () => { return { ...state } }