I'm not sure the exact question here. But Hooks have a clear set of rules to follow. As well 'useEffect' can be used several times so you that you cad can properly group related code and seperate it from unrelated code. Co-location of your effects
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.