 (defui ^:once ItemList
   static
   fc/InitialAppState
-  (initial-state [c params] {:items-by-added-at {1508175827181 {:added-at 1508175827181
-                                                                :text "hello"}
-                                                 1508175970713 {:added-at 1508175970713
-                                                                :text "world"}}
-                             :item-list '(1508175827181 1508175970713)
-                             :items [(fc/get-initial-state Item {:added-at 1508175827181
-                                                                 :text "hello"
-                                                                 :checked? false})
-                                     (fc/get-initial-state Item {:added-at 1508175970713
-                                                                 :text "world"
-                                                                 :checked? true})]})
+  (initial-state [c params] {:item-list/items [(fc/get-initial-state Item {:added-at 1508175827181
+                                                                           :text "hello"
+                                                                           :checked? false})
+                                               (fc/get-initial-state Item {:added-at 1508175970713
+                                                                           :text "world"
+                                                                           :checked? true})]})
   Object
   (render [this]
-          (let [{:keys [items-by-added-at item-list items]} (om/props this)]
-            (if (empty? item-list)
+          (let [{:keys [item-list/items]} (om/props this)]
+            (if (empty? items)
               (dom/div
                #js {:className "item-list"}
                (dom/div

(defui ^:once Item
  static
  fc/InitialAppState
  (initial-state [c {:keys [added-at text]}] {:added-at added-at
                                              :text text
                                              :checked? false})
  Object
  (render [this]
          (let [{:keys [added-at text checked?]} (om/props this)]
            (dom/li
             #js {:className "item"}


(defui ^:once App
  static
  fc/InitialAppState
  (initial-state [c params] {:app/item-adder (fc/get-initial-state ItemAdder {})
                             :app/item-list (fc/get-initial-state ItemList {})})

  Object
  (render [this]
          (let [{:keys [ui/react-key]} (om/props this)
                {:keys [app/item-adder app/item-list]} (fc/get-initial-state App {})]
            (dom/div
             #js {:key react-key
                  :className "app"}
