I'm having trouble building Om components that consist of other Om
components. I can't figure out why.

When the following code runs, it fails with:

    Uncaught Error: [object Object]is not ISeqable

I suppose this is a simple mistake, so I don't really want to ask the
question but I am stumped.

What am I doing wrong?

(ns om-composition.core
  (:require [om.core :as om :include-macros true]
            [om.dom :as dom :include-macros true]))

(defn child [app owner]
  (om/component
   (dom/div nil "child")))

(defn parent [app owner]
  (om/component
   (dom/div nil "parent" (om/build child app owner))))

(om/root
  parent
  (atom {})
  {:target (. js/document (getElementById "app"))})

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to