I was reading documentation on reducers, when a piece of code popped up that didn’t make any sense to me. The documentation was going over combining reducers and had this bit of code:
const todoApp = combineReducers({
visibilityFilter,
todos
})
I noticed they passed in an object to the combineReducers method but both of the keys/properties in the object didn’t have values to them.
Above the code in the documentation are two reducer functions with the same name as both keys.