Design comparison
SolutionDesign
Community feedback
- @MaeWolffPosted 8 months ago
Hi! Congrats on your challenge :)
I noticed a few things you could improve:
- In
app/country/[countryName]/page.js
, you wroteporps
instead ofprops
. - You could separate your data logic from the rest of your app by creating hooks to fetch your data, e.g.
useCountries
would fetch all countries. - You can use
Tanstack Query
(documentation) for your state management with your data fetching. - Use a solution like
prettier
if you're on vscode to make your code a bit more readable
Next step is to start using TypeScript :)
Marked as helpful0 - In
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