I never thought about it but when using combinereducers, the syntax is odd:
const File = {
Apex1,
PeopleInput
};
const reducers = combineReducers(File);
Basically instead of inserting key, values into the {} you can just pass the single value of a function.
I tried doing this with strings and got an error. I.E. this syntax is not valid.
const Strings = {
'foo',
'boo'
}
I have two objects of the form in File that I need to combine. How can I go about doing this:
Can I use this method:
const combined = {
...File1,
...File2
};
This works with normal objects but I'm not sure about the form I mentioned above.
I'm trying to find some reference material on how objects behave without values and am not even sure it is supported:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects
However, this method is used in the redux docs: