This is a React application that demonstrates the use of the Context API and useReducer
for state management. The application features a shopping cart where users can add, remove, and update item quantities. The project is styled using styled-components
and includes prop validation with prop-types
.
Check out the live demo of the application on Netlify: use-context-api-task
- Add items to the cart
- Remove items from the cart
- Update item quantities in the cart
- Display total quantity and amount in the cart
- Responsive design using
styled-components
- React
- Context API
useReducer
styled-components
prop-types
react-icons
To get a local copy up and running, follow these steps:
Make sure you have Node.js and npm installed on your machine.
Clone the repository:
git clone https://github.com/your-username/react-usecontext-task.git
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License.
React styled-components prop-types react-icons