Skip to content

Commit bbf3677

Browse files
change default todos to have todos
1 parent c0cb004 commit bbf3677

File tree

1 file changed

+5
-1
lines changed
  • ep11-switch-to-todo-part2/app/components

1 file changed

+5
-1
lines changed

ep11-switch-to-todo-part2/app/components/App.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ export default class App extends React.Component {
55

66
constructor () {
77
super();
8-
this.state = { title: '', todos: ['eggs', 'banana', 'bread'] };
8+
this.state = { title: '', todos: [
9+
{ title: 'eggs', done: false },
10+
{ title: 'banana', done: false },
11+
{ title: 'bread', done: false }
12+
] };
913
}
1014

1115
handleDelete (titleToBeDeleted) {

0 commit comments

Comments
 (0)