Skip to content

Commit

Permalink
Removing an extra div
Browse files Browse the repository at this point in the history
:<> - Reagent Fragment (https://github.com/reagent-project/reagent/blob/master/doc/ReactFeatures.md)
Example #1

[:div
  [:span "foo"]
  [:span "bar"]] 

=>
<body>
    <span>"foo"</span>
    <span>"bar"</span>
</body>
  • Loading branch information
Panthevm authored and mike-thompson-day8 committed Jul 2, 2020
1 parent 51efe64 commit 0924c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/todomvc/src/todomvc/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

(defn todo-app
[]
[:div
[:<>
[:section#todoapp
[task-entry]
(when (seq @(subscribe [:todos]))
Expand Down

0 comments on commit 0924c60

Please sign in to comment.