Skip to content

Commit

Permalink
Update why-not-reagent.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lilactown authored Feb 13, 2019
1 parent 13b2a47 commit 169598a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/why-not-reagent.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Reagent code:
(fn [foo bar]
[:div
[:div "Foo: " foo] [:div "Bar: " bar]
[:div "Count: " count]
[:div "Count: " (:count @state)]
[:button {:on-click #(swap! state update :count inc)} "+"]])))
```

Expand All @@ -44,7 +44,7 @@ hx + Hooks code:
(let [state (<-state {:count 0})]
[:div
[:div "Foo: " foo] [:div "Bar: " bar]
[:div "Count: " count]
[:div "Count: " (:count state)]
[:button {:on-click #(swap! state update :count inc)} "+"]]))
```

Expand Down

0 comments on commit 169598a

Please sign in to comment.