Skip to content

Commit e055a35

Browse files
moved key to section element to avoid warning
1 parent 91a9cd6 commit e055a35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ep16-new-css/app/components/DisplayList.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ export default class DisplayList extends React.Component {
66
render () {
77
return <ul>
88
{ this.props.todos.map((todo, i) => {
9-
return <section id="main">
9+
return <section id="main" key={todo.title}>
1010
<DisplayItem
11-
key={todo.title}
1211
todo={todo}
1312
handleDone={this.props.handleDone}
1413
handleDelete={this.props.handleDelete} />;

0 commit comments

Comments
 (0)