                      [:div "hello"]
                      [:div "world"]]
                     ^{:key 2}
-                    [:<>
-                     [:div "foo"]])])]
+                    [children])])]
       (is (= "<div><div>hello</div><div>world</div><div>foo</div></div>"
              (as-string [comp]))))))


(deftest test-fragments
  (testing "Fragment as array"
    (let [comp (fn []
                 #js [(r/as-element [:div "hello"])
                      (r/as-element [:div "world"])])]
      (is (= "<div>hello</div><div>world</div>"
             (as-string [comp])))))

  (testing "Fragment element, :<>"
    (let [comp (fn []
                 [:<>
                  [:div "hello"]
                  [:div "world"]


  (testing "Fragment key"
    ;; This would cause React warning if both fragements didn't have key set
    ;; But wont fail the test
    (let [children (fn comp4 []
                     [:<>
                      [:div "foo"]])
          comp (fn comp3 []
                 [:div
                  (list
                    [:<>
