Search code examples
clojurehiccup

What is :<> in reagent hiccup?


I don't understand the tag ":<>" in the following code clojure re-frame todomvc

(defn todo-app
  []
  [:<>
   [:section#todoapp
    [task-entry]
    (when (seq @(subscribe [:todos]))
      [task-list])
    [footer-controls]]
   [:footer#info
    [:p "Double-click to edit a todo"]]])

Can anyone help me on this?


Solution

  • That is creating a React Fragment:

    https://reactjs.org/docs/fragments.html