mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
simplify 2-2 exercise
This commit is contained in:
@@ -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'
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user