Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Country API with Tailwind CSS

sheri 220

@sheri0441

Desktop design screenshot for the REST Countries API with color theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


Great project, help me understand the many concept of the react, react-router and Tailwind CSS.

Question : How can you improve speed of the website?

Community feedback

@kairat-kempirbaev

Posted

Hi, @sheri0441

You can use a lazy loading approach. Just hard code 6 countries in a view and update your state when you get the rest

Alternative would be to make use of a local storage. On each refresh you would get the local cache instead of making many requests.

Hope that helps.

Happy coding

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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