Re:Things you forgot because of React
by test098 on Tuesday August 15, 2023 @03:51PM
(#37138500)
> whereas the new docs say it’s used to “sync” components (and I don’t remember if it explicitly says not to use it for side effects, but that’s the common understanding people have now).
other way around. useEffect is for side effects (hence the name) and are _not_ needed for "syncing" state with props.
other way around. useEffect is for side effects (hence the name) and are _not_ needed for "syncing" state with props.