Skip to content

[Typo]: index argument of the map function is not used, so better to omit it as the second optional argument. #7631

Open
@behanprw

Description

Summary

In the 'Avoid duplication in state' part of this page, 'index' is used as the second argument in the map function, but never used.

Page

https://react.dev/learn/choosing-the-state-structure

Details

Remove the 'index' argument from the map function, as it is not used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions