React — Why do we have to make API call in useEffect?

📰 Medium · JavaScript

This article is intended to understand the reasons behind making API calls in useEffect over useState where we can initialize the state. Continue reading on Medium »

Published 11 Jun 2026
Read full article → ← Back to Reads