This is a simple React app built with Vite with Responsive design to practice using the useContext hook. The app is inspired by John Smilga's React projects and utilizes a data (json file, inspired by strapi menu) .
To run this app on your local machine, follow these steps:
- Clone this repository to your local machine
https://github.com/AmalShalabi/Strapi-menu-useContext-demo.git
- Navigate to the project directory in your terminal
cd Strapi-menu-useContext-demo
- Run
npm install
to install the necessary dependencies - Run
npm run dev
to start the development server - Open your browser and navigate to
http://localhost:3000
to view the app
Once the app is running, you can browse the menu items by clicking on the "Menu" link in the navbar. You can also add items to your cart and view your cart by clicking on the "Cart" link in the navbar.
The app uses the useContext hook to manage the state of the cart items and pass the cart data between components.
This is a personal project and is not open to contributions at this time.
This project is licensed under the MIT license. See the LICENSE file for more information.