Merge pull request #473 from dosbol/patch-1

Fix indentation
This commit is contained in:
Mike Thompson 2020-01-05 10:32:29 +11:00 committed by GitHub
commit 31c765b317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -109,10 +109,10 @@ Child component 2:
```clj
(defn more-button
"I'm a button labelled 'More' which increments counter when clicked"
[counter] ;; a ratom
[counter] ;; a ratom
[:div {:class "button-class"
:on-click #(swap! counter inc)} ;; increment the int value in counter
"More"])
:on-click #(swap! counter inc)} ;; increment the int value in counter
"More"])
```
And, finally, a Form-2 parent Component which uses these two child components: