Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I agree.

useEffect should have been named useDangerousSideEffectAndThisIsNotALifecycleHook and the js influencers should have never compared useEffect to component lifecycles and the React team should have updated their docs and not wait 4.5 years to do so and the dependency array should absolutely not be optional.



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

Search: