Merge pull request #405 from cloojure/patch-5

small rearrangement
This commit is contained in:
Juho Teperi 2018-12-09 11:08:42 +02:00 committed by GitHub
commit 4560b45fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -123,8 +123,9 @@ And, finally, a Form-2 parent Component which uses these two child components:
(fn parent-renderer
[]
[:div
[more-button counter] ;; no @ on counter
[greet-number @counter]]))) ;; notice the @. The prop is an int
[greet-number @counter] ;; notice the @. The prop is an int
[more-button counter]]))) ;; no @ on counter
```
With this setup, answer this question: what rerendering happens each time the `more-button` gets clicked and `counter` gets incremented?