Submitted almost 2 years agoA solution to the REST Countries API with color theme switcher challenge
REST API Countries
axios, react, sass/scss, react-router
@saswat10

Solution retrospective
problems
- naming classes in css
- dividing the react components into smaller chunks, like which would make the code more reusable
unsure areas
- displaying the currencies and native names in international format
questions
- how can I make use of
useMemo
anduseCallback
for making fetch reqeusts? - what are the best practices for optimizing the search component (it is in the CountryList.jsx file)?
- how to break down components and make code DRY?
GENERAL QUESTION How do you start your project - like do you first start writing the logic and add design or do you study the design first and make classes and then add logic?
Any other suggestions are open, please free to answer, It would help me a lot
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Saswat Samal'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