Skip to content

Instantly share code, notes, and snippets.

@burgwyn
Created October 16, 2017 17:57
Show Gist options
  • Save burgwyn/48343a7bba034e823c2c930a1dc178be to your computer and use it in GitHub Desktop.
Save burgwyn/48343a7bba034e823c2c930a1dc178be to your computer and use it in GitHub Desktop.
Example of Index as Key anti-pattern
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