Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tanaypingalkar
· 5y ago · 0 comments
True, you cannot do that in useEffect, it will throw you error. And probably your linter will tell you. You can't even use your own or third party hooks in side useEffect. This also throw error I don't know why?
Comments
[–]
gassiss
5y ago
Because you could be nesting hooks, which would bring all sorts of weird behavior.