DEV Community

Musa Yazlık
Musa Yazlık

Posted on

Why are the API calls made in useEffet()?

In general, I see that API call operations are done in the useEffect hook in projects made with react. As a result of my research, I saw that API call operations are not recommended to be done in useEffect(). Why do developers make API calls in useEffect?

Where do you guys make the API calls?

Top comments (0)