forked from fxbois/web-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0632.jsx
36 lines (36 loc) · 815 Bytes
/
0632.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export default class App extends Component {
render() {
return (
<div>
<AddTodo
onAddClick={text =>
console.log('add todo', text);
}
/>
<TodoList
todos={
[
{
text: 'Use Redux',
completed: true
},
{
text: 'Learn to connect it to React',
completed: false
}
]
}
onTodoClick={index =>
console.log('todo clicked', index)
}
/>
<Footer
filter='SHOW_ALL'
onFilterChange={filter =>
console.log('filter change', filter)
}
/>
</div>
);
}
}