Order summary card with responsive design built with React
Design comparison
Solution retrospective
Any suggestions or improvements are welcome. I would appreciate advice on React componentization and with styled-components styling
Community feedback
- @warrenleePosted over 2 years ago
Hey cacosted, I know that the current filesystem works for larger projects where each component has it's own
index.jsx
file andstyle.js
file but since this project is rather simple and all yourindex.jsx
are relatively the same, I would just remove all theindex.jsx
files and rename thestyle.js
toindex.js
. But in terms of theory, I think what you have is correct. Each element with its logic should be a component so that it can be reused in other places of the application. Maybe try one of the projects under the Junior level, where I think you can do more with React components.Marked as helpful1@cacostedPosted over 2 years agoHello @warrenlee thanks for your suggestion, I'll keep in mind this to simplify a small project.
I know that in this case it wasn't necessary to use this structure but I want to practice with an easier project first to understand the basics and then go with a more complex challenge.
1@warrenleePosted over 2 years ago@cacosted Hey no worries, yes I saw you were trying to understand the basics. I think it's because there's no logic needed in the project so you couldn't really fully utilize React.
I would recommend trying out these challenges as they are simple and have some logic in them.
https://www.frontendmentor.io/challenges/interactive-rating-component-koxpeBUmI https://www.frontendmentor.io/challenges/advice-generator-app-QdUG-13db
Marked as helpful0
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