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

@abdul-haseeb123

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?

I very much like the way of learning and handling the cart using react context, so that if it was a multipage application, the context would very much help me in getting data anywhere inside any component with synchronization.

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

My components were in different files sharing the same data or same state and I was having difficulty with props drilling in react, and then I found how I can use react context to make a context provider and then get the same data anywhere using hooks.

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