Skip to content

initialCount is not defind for useReducer #1931

Description

@seven-deuce

Hi
Most programmers copy-paste the examples and play around with them until they learn how to use the API.
On the sample code given here the code does not work because the initialCount is not defined.
It should be fixed like this:
function init(initialCount) { return {count: 0}; }

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