Created
October 16, 2017 17:57
-
-
Save burgwyn/48343a7bba034e823c2c930a1dc178be to your computer and use it in GitHub Desktop.
Example of Index as Key anti-pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
items.map((item, index) => { | |
return (<ItemComponent key={index} item={item} />); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment