https://github.com/vertikajain/react-context-api-examples
https://github.com/vertikajain/react-context-api-examples
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vertikajain/react-context-api-examples
- Owner: VertikaJain
- Created: 2023-06-11T12:19:04.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-20T11:45:04.000Z (almost 2 years ago)
- Last Synced: 2025-01-18T07:13:03.340Z (5 months ago)
- Language: JavaScript
- Size: 479 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Context API example
## How to run the App
Execute `npm run start` in command prompt.
## Ecommerce example without Context

## Ecommerce example with Context

## Resources
1. [Passing Props to a component](https://react.dev/learn/passing-props-to-a-component)
2. [Using Context API to avoid props drilling](https://react.dev/learn/passing-data-deeply-with-context)
3. [First example you can try](https://www.youtube.com/watch?v=4UZrsTqkcW4&t=28856s)