Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 12 months ago

product list with cart

react, typescript, vite, tailwind-css
David David•240
@blacdav
A solution to the Product list with cart challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

I'm Most Proud of my ability to learn new things, while solving this project.

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

One Striking Challange i had, was being able to style the elements in the cart seperately, so that users know which items have been added to cart.

Another one was having to calculate the number of items in the cart. the state.length worked, but it failed to include the quantity of each items, so i used an Array,reduce to sum up the quantity of each item in the cart.

What specific areas of your project would you like help with?

None for now, except that i'll like for a senior dev to help me go through my codebase, and point out where i should improve on.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on David David's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License