Created
March 27, 2016 10:39
-
-
Save dai-shi/a04f2e4091ba31bae39a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx | |
| index 246ad81..3347daf 100644 | |
| --- a/imports/ui/App.jsx | |
| +++ b/imports/ui/App.jsx | |
| @@ -31,6 +31,12 @@ class App extends Component { | |
| ReactDOM.findDOMNode(this.refs.textInput).value = ''; | |
| } | |
| + toggleHideCompleted() { | |
| + this.setState({ | |
| + hideCompleted: !this.state.hideCompleted, | |
| + }); | |
| + } | |
| + | |
| renderTasks() { | |
| return this.props.tasks.map((task) => ( | |
| <Task key={task._id} task={task} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment