DEV Community

Discussion on: Hooked on React hooks

Collapse
 
motss profile image
Rong Sen Ng • Edited

Can we actually make multiple fetches with Promise.all inside an useEffect hook?

Collapse
 
httpjunkie profile image
Eric Bishard

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