updated 7

This commit is contained in:
Micah Godbolt
2019-02-23 12:36:59 -08:00
parent 62e015697f
commit 710064c355
2 changed files with 21 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ import { Todos, FilterTypes } from './TodoApp.types';
let index = 0;
export class TodoApp extends React.Component<{}, { todos: Todos; filter: FilterTypes }> {
export class TodoApp extends React.Component<any, any> {
constructor(props) {
super(props);
this.state = {
@@ -26,8 +26,6 @@ export class TodoApp extends React.Component<{}, { todos: Todos; filter: FilterT
);
}
// business logic
private _addTodo = label => {
const { todos } = this.state;
const id = index++;