Skip to content

Code error in the example explained in the API doc for "combineReducers" ? #1616

@parallelthought

Description

@parallelthought

In the example described as part of API doc of "combineReducers", at the time of the store creation, "reducer" as a parameter is passed on to createStore in the file "app.js" (let store = createStore(reducer)).

However in "reducers/index.js", the function name is "combineReducers" and not "reducer" (export default combineReducers({..})).

So shouldn't the parameter pass on at the creation of the store be "combineReducers" (Eg: let store = createStore(combineReducers)) ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions