diff --git a/src/main/com/fulcrologic/fulcro/components.cljc b/src/main/com/fulcrologic/fulcro/components.cljc index 00625b2a..6334ef6c 100644 --- a/src/main/com/fulcrologic/fulcro/components.cljc +++ b/src/main/com/fulcrologic/fulcro/components.cljc @@ -1020,7 +1020,9 @@ [{} args])] (vec children)) :cljs - (let [[props children] (if (map? (first args)) + (let [[props children] (if (and (map? (first args)) + ;; fragment only supports key,children + (= ["key"] (->> args first keys (map name)))) [(first args) (rest args)] [#js {} args])] (apply react/createElement react/Fragment (clj->js props) (force-children children)))))