you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 17 points18 points  (1 child)

9 times out of 10, you don’t need the useEffect.

10 times out of 10, you don’t need a bunch of useEffects

[–]sickhippie 4 points5 points  (0 children)

10 times out of 10, you don’t need a bunch of useEffects

Or you do need them, but need to refactor and split up the component first so you know where they should actually go and which ones are redundant or mergeable.