Explorar o código

Step 8.2: Add getInitialState to App component.

Frederic G. MARAND %!s(int64=9) %!d(string=hai) anos
pai
achega
cb9d84e210
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      App.jsx

+ 6 - 0
App.jsx

@@ -5,6 +5,12 @@ App = React.createClass({
   // This mixin makes the getMeteorData work.
   mixins: [ReactMeteorData],
 
+  getInitialState() {
+    return {
+      hideCompleted: false
+    };
+  },
+
   // Loads items from the Tasks collection and puts them on this.data.tasks.
   getMeteorData() {
     let result = {