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 day8#1

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

=>
<body>
    <span>"foo"</span>
    <span>"bar"</span>
</body>
  • Loading branch information
Panthevm authored Jul 2, 2020
1 parent 49b3c79 commit 88ebce6
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 88ebce6

Please sign in to comment.