Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save dai-shi/d124672f443d94d93689 to your computer and use it in GitHub Desktop.
diff --git a/imports/ui/App.jsx b/imports/ui/App.jsx
index 75714e5..78e5548 100644
--- a/imports/ui/App.jsx
+++ b/imports/ui/App.jsx
@@ -51,7 +51,7 @@ class App extends Component {
return (
<div className="container">
<header>
- <h1>Todo List</h1>
+ <h1>Todo List ({this.props.incompleteCount})</h1>
<label className="hide-completed">
<input
@@ -82,6 +82,7 @@ class App extends Component {
App.propTypes = {
tasks: PropTypes.array.isRequired,
+ incompleteCount: PropTypes.number.isRequired,
};
export default createContainer(() => {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment