Submitted over 1 year agoA solution to the REST Countries API with color theme switcher challenge
Where in the world - Using NextJS in TypeScript and the new app router
next, typescript, react
P
@robin-bosch

Solution retrospective
I did this one a bit differently, not using the API and using the JSON file with the countries directly, due to performance issues with the API. I wrote a small Next.js backend replacing the API. First time using the app router of Next.js, let me know if I can improve on the usage of the app router, especially with the usage of the "use client" declaration.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Robin Bosch's solution.
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