Skip to content

Commit c854df2

Browse files
clear title state
1 parent 7fbdcf8 commit c854df2

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default class App extends React.Component {
4141

4242
//this.addTodo(newTodo);
4343
TodoActions.addTodo(newTodo);
44+
this.setState({ title: '' });
4445
}
4546

4647
addTodo (newTodo) {

0 commit comments

Comments
 (0)