Skip to content

Instantly share code, notes, and snippets.

@dai-shi
Created March 27, 2016 10:39
Show Gist options
  • Select an option

  • Save dai-shi/a04f2e4091ba31bae39a to your computer and use it in GitHub Desktop.

Select an option

Save dai-shi/a04f2e4091ba31bae39a to your computer and use it in GitHub Desktop.
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