small rearrangement

Keep the order of usage the same as the order declared, so child #1 is used first & child #2 is used second.
This commit is contained in:
Alan Thompson 2018-11-05 12:51:32 -08:00 committed by GitHub
parent d9057eaecf
commit 225458622c
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 (fn parent-renderer
[] []
[:div [: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? With this setup, answer this question: what rerendering happens each time the `more-button` gets clicked and `counter` gets incremented?