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

index used as key #14

Open
ZooeyMiller opened this issue May 25, 2018 · 0 comments
Open

index used as key #14

ZooeyMiller opened this issue May 25, 2018 · 0 comments

Comments

@ZooeyMiller
Copy link

Indexes shouldn't be used as keys in react as it doesn't work properly for react's diffing.

this video explains it better than I ever would: https://egghead.io/lessons/react-use-the-key-prop-when-rendering-a-list-with-react

(ping me on gitter if you need the fac egghead login)

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

No branches or pull requests

2 participants