...

/

Challenge: API States

Challenge: API States

Practice what we’ve learned about the API states.

Problem statement

Displaying appropriate feedback during API requests can improve user experience, as users are not left wondering if anything is happening on the website in response to their actions. Therefore, it’s a good practice to display some kind of feedback, such as a loader or message during an API request and then a success or an error message. Your task is to add appropriate feedback to an API request that’s used to fetch a list of posts.

Challenge

All the necessary code has been provided for you. The starter code ...