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.
1 parent 5c1a89a commit 7b15d9aCopy full SHA for 7b15d9a
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