Skip to content
Permalink
Browse files

Only clean up the input after submitting form.

  • Loading branch information...
alexventuraio committed Apr 15, 2019
1 parent 994a418 commit 47db1bb693e74c007d68bb8456e6806045eab949
Showing with 3 additions and 0 deletions.
  1. +3 −0 todolist-react/src/components/App.js
@@ -33,6 +33,9 @@ class App extends Component {
body: JSON.stringify({description: this.state.itemInput})
});

this.setState({ itemInput: '' });
}

handleReceivedItems = response => {
const { item } = response;

0 comments on commit 47db1bb

Please sign in to comment.
You can’t perform that action at this time.