Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
behanprw opened this issue Feb 18, 2025 · 1 comment · May be fixed by #7634

Comments

@behanprw
Copy link

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.

@Vaishhhnavi77
Copy link

"I'd love to contribute! Let me know if I can help."

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

Successfully merging a pull request may close this issue.

2 participants