Design comparison
Solution retrospective
Learnt how to use API
What challenges did you encounter, and how did you overcome them?Getting the id of the quote generated on each click
What specific areas of your project would you like help with?I was a little confused at first on the method to use to get the advice, shouldn’t API’s have a json file for clarity or something?
Community feedback
- @TedJenklerPosted 4 months ago
Hi Christian,
Absolutely! APIs typically come with detailed documentation that includes example JSON responses to help you understand how to use them. Tools like Axios are particularly effective for making API requests because of their promise-based syntax and error handling capabilities (like try/catch). Axios also automatically parses JSON responses and simplifies both sending requests and handling the data, making API interactions much more manageable.
Hope this helps!
Best, Teodor
0@ChristianKayceePosted 4 months ago@TedJenkler I see, I think I’ll stick with fetch () for now 😮💨
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord