Core: learn it Step 11 of 16 on the Full-Stack Developer roadmap
Calling your API
Fetch data when a component loads, show loading and error states, and send POST or PATCH requests from forms. Keep the API address in one place, such as an environment variable.