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

Product list with cart

P
Adama 80

@donado10

Desktop design screenshot for the Product list with cart coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

This is my first project in Frontend Mentor. I learned a lot about React by using it with typescript. I was struggling a lot when I used the Context API for the first time with typescript but it helps me to better graps the essence of modern frontend development. I fall in love when I used a React design pattern called COMPOUND COMPONENT. I learn that it is better to use it when you render card where some of the cards have different structure. I'm looking foward to do more frontend projects from Frontend mentor because I know for sure I can be profficient in frontend by doing the challenges.

What challenges did you encounter, and how did you overcome them?

The challenges I encounter were about the optimization when using the context API. It is a really headache specially when using callback to update the context. I manage to optimize the static elements but the buttons were not easy to optimize and prevent some unnecessary re renders. I learned that the context has its limit so for the next project, I would try to use a state management library like Redux

Community feedback

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