Design comparison
Solution retrospective
proud of building a project that interacts with third party API's using the modern fetch
method.
I also tried to structure the code in a readable and understandable manner.
fetch seemed great so I don't know if I'll use anything different next time. but I'm curious how interacting with API's work in the context of frontend frameworks.
What challenges did you encounter, and how did you overcome them?The main challenege was requesting the data from the Advice Slip Json API.
I used the fetch
method to accomplish that. wrapped in an async function that fetches one random advice and returns it.
On page load and on the click of the button. we fetch one random advice and update the UI using simple DOM manipulation.
What specific areas of your project would you like help with?I would like to know if my code is readable and understandable by other developers.
Thank you for checking out my solution.
Community feedback
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