changed step names

This commit is contained in:
Micah Godbolt
2019-02-14 10:15:39 -08:00
parent d0d6a788e2
commit 41a79e8883
34 changed files with 16 additions and 14 deletions

29
step1-06/src/App.tsx Normal file
View File

@@ -0,0 +1,29 @@
import React from 'react';
import { TodoFooter } from './components/TodoFooter';
import { TodoHeader } from './components/TodoHeader';
import { TodoList } from './components/TodoList';
export class TodoApp extends React.Component<any, any> {
constructor(props) {
super(props);
this.state = {
todos: [
{ key: 1, text: 'Todo 1', completed: true },
{ key: 2, text: 'Todo 2' },
{ key: 3, text: 'Todo 3' },
{ key: 4, text: 'Todo 4' }
],
filter: 'all'
};
}
render() {
const { filter, todos } = this.state;
return (
<div>
<TodoHeader filter={filter} />
<TodoList todos={todos} filter={filter} />
<TodoFooter todos={todos} />
</div>
);
}
}