2 ms·
Not really lots of functions do have to be declared in useEffect for dependency management.
by dmitryminkovsky 6y ago
Not really lots of functions do have to be declared in useEffect for dependency management.
- nightski 6y agoI'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.