We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c854df2 commit 13f2433Copy full SHA for 13f2433
ep25-add-todo-using-flux/app/components/App.jsx
@@ -44,12 +44,6 @@ export default class App extends React.Component {
44
this.setState({ title: '' });
45
}
46
47
- addTodo (newTodo) {
48
- api.addTodo(newTodo)
49
- .then( () => { return api.getTodos() })
50
- .then( (responseData) => this.setState({title: '', todos: responseData.todos} ));
51
- }
52
-
53
handleChange (event) {
54
var title = event.target.value;
55
this.setState({ title: title });
0 commit comments