   (let [props (gobject/get element "props")
         children (->> (gobject/get props "children")
                       js/React.Children.toArray
-                      (filter js/React.isValidElement))]
+                      (filter js/React.isValidElement)
+                      (filter #(string? (gobject/get % "type"))))]
     (into {:type (gobject/get element "type")
            :children (map signature children)}
           (map (juxt identity (partial gobject/get props))

            [clojure.spec :as s :include-macros true]
            [clojure.test.check.generators :as gen]
            [goog.object :as gobject]
            [om.next :as om-next :refer-macros [defui]])
  (:require-macros
   [devcards.core :as dc :refer [defcard deftest]]


  (testing "Generates one set of data for each morph of an Om component"
    (dotimes [_ 10]
      (let [data (morph-data demo-component-om-next ::data-for-component)]
        (is (not (nil? data)))
        (is (every? (partial s/valid? ::data-for-component) data))
        (is (= 4 (count data)))
