DEV Community

Discussion on: Effects are not lifecycles

abdisalan_js profile image

You're right, in some cases you probably couldn't get away with putting side effects outside of the useEffect. However, using the second argument is still a powerful tool that should be used and doesn't mean you are "incorrectly coding functionality"