Skip to content

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

Closed
@behanprw

Description

@behanprw

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.

Metadata

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