[ClojureScript] Re: Reagent: What is the proper way of defining component properties?

2015-03-07 Thread Nils Blum-Oeste
Thanks Mike, I had seen that already. IMHO it does not really explain this properly because props are only used in the render function in that example but not in the lifecycle hooks. My current solution is to use `reagent.core/props` (public api, not an impl. like get-props, just a thin

[ClojureScript] Re: Reagent: What is the proper way of defining component properties?

2015-03-07 Thread Nils
Ilya, did you figure something out to do this in a nicer way? I am struggling with this too. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To

[ClojureScript] Re: Reagent: What is the proper way of defining component properties?

2015-03-07 Thread Mike Thompson
On Sunday, March 8, 2015 at 8:10:07 AM UTC+11, Nils wrote: Ilya, did you figure something out to do this in a nicer way? I am struggling with this too. This should help: https://github.com/Day8/re-frame/wiki/Creating-Reagent-Components#form-3-a-class-with-life-cycle-methods -- Note that