Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Order summary card with responsive design built with React

cacosted 570

@cacosted

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any suggestions or improvements are welcome. I would appreciate advice on React componentization and with styled-components styling

Community feedback

Warren 630

@warrenlee

Posted

Hey cacosted, I know that the current filesystem works for larger projects where each component has it's own index.jsx file and style.js file but since this project is rather simple and all your index.jsx are relatively the same, I would just remove all the index.jsx files and rename the style.js to index.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 helpful

1

cacosted 570

@cacosted

Posted

Hello @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

Please log in to post a comment

Log in with GitHub
Discord logo

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