Fork the repository at https://github.com/flaviocopes/react-ecommerce, add your code and submit a PR.

Here are the challenges I propose for the e-commerce app:

  1. make sure that when you add a product, the “slug” (the portion of the URL that identifies this product) is unique. Choose a way to do this, and execute it.
  2. add a button that when clicked removes an item from the cart
  3. Add some feedback after adding a product. It could be a visual indication and then clearing the form data. Or you can redirect back to the products list.
  4. Instead of adding 1 product when the “Add to cart” button is clicked, add a quantity select element, from 1 to 10 (or a text box), and add the specified quantity
  5. Implement checkout using Stripe Checkout and create a confirmation page.
  6. Handle the case of accessing the wrong url, for products that do not exist. Add an empty state

Go to the next module