Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mrozbarry
· 2y ago · 0 comments
Life-cycle hooks typically run as side-effects from state changes, so that would be your route to do something similar.
Comments
[–]
lf-non
2y 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?