Skip to content

naomiven/react-food-order-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-food-order-app

Food order app to practice various React hooks

Built with:

npm -v
8.1.2
node -v
v16.13.1
```w

## useEffect

- Used for showing & hiding the Cart Modal

## useContext

- `CartContext` stores all states & functions for the cart. Eg., `items`, `totalAmount`, `addItem`, `removeItem`.
  - Used for adding an item to cart
- `CartProvider` manages the cart context data. It is used as a wrapper to all components that want access to the context.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published