getInitialState not firing
geraldodev opened this issue · 2 comments
geraldodev commented
I'm playing with examples from documentation and It appears that getInitialState is not firing:
https://gist.github.com/geraldodev/7614173
The liked state starts with false. In chrome the :get-initial-state function is not recongnized at runtime.
piranha commented
It should be other way around:
(defr LikeButton
:get-initial-state #(identity {:liked true})
[component props state]
[:p "qwe"])
geraldodev commented
errr :(
Thanx!