Browse Source

Step 3.1: Define tasks collection.

Frederic G. MARAND 9 years ago
parent
commit
781a40d659
1 changed files with 3 additions and 0 deletions
  1. 3 0
      simple-todos-react.jsx

+ 3 - 0
simple-todos-react.jsx

@@ -1,3 +1,6 @@
+// Define a collection to hold our tasks.
+Tasks = new Mongo.Collection('tasks');
+
 if (Meteor.isClient) {
   Meteor.startup(function () {
     // Use this branch to render the component after the page is ready.