(replace-state this new-state)
Set state of a component.
Equivalent to (reset! (state-atom this) new-state)
Source
(defn
replace-state
"Set state of a component.\n Equivalent to (reset! (state-atom this) new-state)"
[this new-state]
(assert-component this)
(assert-new-state new-state)
(reset! (state-atom this) new-state))