Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save dai-shi/1a3eaa0ed3d152d8c03a to your computer and use it in GitHub Desktop.
diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx
index 546d198..31d7564 100644
--- a/imports/ui/App.jsx
+++ b/imports/ui/App.jsx
@@ -35,6 +35,16 @@ class App extends Component {
<header>
<h1>Todo List</h1>
+ <label className="hide-completed">
+ <input
+ type="checkbox"
+ readOnly
+ checked={this.state.hideCompleted}
+ onClick={this.toggleHideCompleted.bind(this)}
+ />
+ Hide Completed Tasks
+ </label>
+
<form className="new-task" onSubmit={this.handleSubmit.bind(this)} >
<input
type="text"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment