Hacker News new | past | comments | ask | show | jobs | submit login

Not really lots of functions do have to be declared in useEffect for dependency management.



I'm not aware of any case in which this is true. Effects are run on every render unless you explicitly specify dependencies in the second argument of the hook.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: