Submitted over 2 years ago
Rest Countries API - React Router, Styled Components, some Typescript
@djblackett
Design comparison
SolutionDesign
Solution retrospective
I'm happy with the result of this app, but I feel like my code organization leaves something to be desired. This was my first time using styled-components, and I ran into the problem of treating them too much like components at first. I refactored by splitting the codebase into smaller pieces and with the smaller components it was more convenient to keep the styles in the same file, but the larger layout components got unwieldy so I made seperate style files. Any suggested repos or reading that might be helpful in this regard?
Community feedback
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