I have some side effects to apply and want to know how to organize them:
What\'s better in
You should use multiple effects to separate concerns as suggested by reactjs.org https://reactjs.org/docs/hooks-effect.html#tip-use-multiple-effects-to-separate-concerns