Browse Source

Step 2: static version - Added actual products.

Frederic G. MARAND 9 years ago
parent
commit
e010a1045a
1 changed files with 10 additions and 1 deletions
  1. 10 1
      public/scripts/thinking.js

+ 10 - 1
public/scripts/thinking.js

@@ -113,7 +113,16 @@ let FilterableProductTable = React.createClass({
   }
 });
 
+let PRODUCTS = [
+  {category: 'Sporting Goods', price: '$49.99', stocked: true, name: 'Football'},
+  {category: 'Sporting Goods', price: '$9.99', stocked: true, name: 'Baseball'},
+  {category: 'Sporting Goods', price: '$29.99', stocked: false, name: 'Basketball'},
+  {category: 'Electronics', price: '$99.99', stocked: true, name: 'iPod Touch'},
+  {category: 'Electronics', price: '$399.99', stocked: false, name: 'iPhone 5'},
+  {category: 'Electronics', price: '$199.99', stocked: true, name: 'Nexus 7'}
+];
+
 ReactDOM.render(
-  <FilterableProductTable products={[]} />,
+  <FilterableProductTable products={PRODUCTS} />,
   document.getElementById("content")
 );