I'm rank new to React and even newer to Redux thus the question.
So I have an initial state in my reducer which is Object = {}
Now I want to modify this state and return it with an object user.
So I'm expecting a result Object = {user}
User in itself has the following properties,
{A: 1, B:2, C:3}
If I use Object.assign({}, state, user}
I get the following,
Object = {A: 1, B:2, C:3}
So how do I copy the user object to the state object as a parameter without splitting it up. Also how do I do this in case the object I'm adding is an array.