Skip to content

Commit 13f2433

Browse files
no need of addTODO in App
1 parent c854df2 commit 13f2433

File tree

1 file changed

+0
-6
lines changed
  • ep25-add-todo-using-flux/app/components

1 file changed

+0
-6
lines changed

ep25-add-todo-using-flux/app/components/App.jsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ export default class App extends React.Component {
4444
this.setState({ title: '' });
4545
}
4646

47-
addTodo (newTodo) {
48-
api.addTodo(newTodo)
49-
.then( () => { return api.getTodos() })
50-
.then( (responseData) => this.setState({title: '', todos: responseData.todos} ));
51-
}
52-
5347
handleChange (event) {
5448
var title = event.target.value;
5549
this.setState({ title: title });

0 commit comments

Comments
 (0)