Submitted over 2 years ago
React Rest Country Api App With Darkmode Functionality
@Kingsleyaham
Design comparison
SolutionDesign
Solution retrospective
Please guys i need help on how to make the fetch request to the api very fast
Community feedback
- @Enmanuel-Otero-MontanoPosted over 2 years ago
Hello Aham!
I don't know React, but what quickly comes to mind if I did it with plain JavaScript, would be to make the API call as soon as the DOM loads, that is, not to wait for the styles to load, I would do that with the DOMContentLoad event. Maybe there is some way to do something similar with React.
Cheers!
1@KingsleyahamPosted over 2 years ago@Enmanuel-Otero-Montano thanks will try it out
0
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