diff --git a/todos/src/app.jsx b/todos/src/app.jsx index 173bff5..ede94e4 100755 --- a/todos/src/app.jsx +++ b/todos/src/app.jsx @@ -15,7 +15,7 @@ var App = React.createClass({

To-Do List

-
+
} diff --git a/todos/src/header.jsx b/todos/src/header.jsx index 210b79e..be9f738 100644 --- a/todos/src/header.jsx +++ b/todos/src/header.jsx @@ -24,7 +24,12 @@ module.exports = React.createClass({ }, handleClick: function() { - console.log(this.state.text); + this.props.itemsStore.push({ + text: this.state.text, + done: false + }); + + this.setState({text: ''}); }, handleInputChange: function(event) { this.setState({text: event.target.value});