Coding task · JavaScript and React course · Module 5: useEffect and Custom Hooks

Practice: Data Fetching

Use useEffect for data fetching like establishing communication with control centers on Earth.

Task

Create an EarthCommunication component using useEffect to fetch data from an API and handle loading/error states.