Y
Hacker News
new
|
ask
|
show
|
jobs
by
mrozbarry
911 days ago
Life-cycle hooks typically run as side-effects from state changes, so that would be your route to do something similar.
1 comments
lf-non
910 days ago
If I want to do something like initialize codemirror when my component attaches to dom, I need an event/hook for that. I can't do that solely based on state subscription?
link