REST Countries App 🌍 – React + API + Dark Mode + Country Detail Page

Solution retrospective
I'm most proud of how I structured the app using React components in a modular and scalable way. Implementing the theme switcher with localStorage persistence, smooth UI transitions, and integrating the REST Countries API with filters and routing was both challenging and rewarding.
What challenges did you encounter, and how did you overcome them?Handling edge cases like 404 errors, undefined country names, or navigating directly to detail pages. I overcame this by adding conditional rendering, React Router error boundaries, and fallback components.
What specific areas of your project would you like help with?I’d appreciate feedback on how I manage state, especially in the country filtering and search functionality.
Are there best practices I’m missing in how I’ve implemented useEffect dependencies or conditional rendering?
Suggestions for improving the accessibility and performance of the app would be really helpful.
I'd love tips on how to better structure CSS in large React projects, especially with Tailwind.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Youssef'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