simplify 2-2 exercise

This commit is contained in:
Ken
2019-02-28 14:09:25 -08:00
parent 88425249ea
commit f6d185632c
7 changed files with 239 additions and 40 deletions

View File

@@ -11,7 +11,10 @@ export class TodoApp extends React.Component<any, Store> {
constructor(props) {
super(props);
this.state = {
todos: {},
todos: {
id0: { label: 'hello', completed: false },
id1: { label: 'world', completed: false }
},
filter: 'all'
};
}