Challenge: Shopping Cart
Hands-on exercise to test your knowledge about the useContext hook in React.
We'll cover the following...
Task
Create a React application that utilizes the useContext
and useState
hook for managing a shopping cart. The application will have a product list, and users can add items to their shopping cart. We'll use a context to manage the state of the shopping cart.
Expected output
The application ...