Skip to content

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) .

Notifications You must be signed in to change notification settings

AmalShalabi/Strapi-menu-useContext-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strapi-menu-useContext

Introduction

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) .

Installation

To run this app on your local machine, follow these steps:

  1. Clone this repository to your local machine https://github.com/AmalShalabi/Strapi-menu-useContext-demo.git
  2. Navigate to the project directory in your terminal cd Strapi-menu-useContext-demo
  3. Run npm install to install the necessary dependencies
  4. Run npm run dev to start the development server
  5. Open your browser and navigate to http://localhost:3000 to view the app

Usage

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.

Contributing

This is a personal project and is not open to contributions at this time.

License

This project is licensed under the MIT license. See the LICENSE file for more information.

About

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) .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages