This is a collaborative shopping cart project that explores the use of state management with two different approaches: Redux and Context API. In this project, two separate branches have been created to showcase the implementations of Redux and Context API, with each branch being maintained by one of the collaborators.
The primary goal of this project is to compare the usage and benefits of Redux and the Context API for state management in a React application. By collaborating with a classmate, we have created separate branches for Redux and Context API implementations, allowing for a side-by-side comparison of these two popular state management solutions.
The Redux branch is maintained by Issam and contains the implementation of the shopping cart using Redux for state management. You can find detailed information and usage instructions in the Redux branch README.
The ContextAPI branch is maintained by Mohamed and contains the implementation of the shopping cart using the Context API for state management. You can find detailed information and usage instructions in the ContextAPI branch README.
If you're new to this project, you can follow these steps to get started:
- Clone the repository:
git clone [email protected]:MEZ901/Redux-vs-Context-Shopping-Cart.git
- Navigate to the project directory:
cd Redux-vs-Context-Shopping-Cart
- Choose the branch that aligns with your interest:
- For Redux:
git checkout redux
- For ContextAPI:
git checkout context-api
- For Redux:
- Follow the instructions in the respective branch's README to set up and run the project.