We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5accaf5 + 7b15d9a commit 6701e74Copy full SHA for 6701e74
5-redux-react/src/js/components/Layout.js
@@ -27,7 +27,7 @@ export default class Layout extends React.Component {
27
return <button onClick={this.fetchTweets.bind(this)}>load tweets</button>
28
}
29
30
- const mappedTweets = tweets.map(tweet => <li>{tweet.text}</li>)
+ const mappedTweets = tweets.map(tweet => <li key={tweet.id}>{tweet.text}</li>)
31
32
return <div>
33
<h1>{user.name}</h1>
0 commit comments