mirror of https://github.com/status-im/reagent.git
commit
4560b45fe9
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue