Use Spread Object Literals to Merge
Copies properities from two objects and merge into one new object
const userToken = action.datareturn {...userToken, ...state}// in place ofconst newUser = statenewUser.token = userToken.tokenreturn newUser
Source -> MDN Spread Syntax