In general is it better to use one or many useEffect hooks in a single component? [closed]

I have some side effects to apply in my react component and want to know how to organize them:

  • as a single useEffect
  • or several useEffects

Which is better in terms of performance and architecture?

3 Answers
3

Leave a Comment