https://github.com/ooade/global-context-example
Using Contexts to properly manage global states
https://github.com/ooade/global-context-example
Last synced: 10 months ago
JSON representation
Using Contexts to properly manage global states
- Host: GitHub
- URL: https://github.com/ooade/global-context-example
- Owner: ooade
- Created: 2020-05-01T13:15:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-08-23T08:49:57.000Z (11 months ago)
- Last Synced: 2025-08-24T03:08:56.648Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.63 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Global Context Example
TLDR; This is an experimental repo that shows how to properly manage your global states with React Context!
## Contents
- [Installation](#installation)
- [Run locally](#run-locally)
### Installation
Clone repo:
SSH:
```sh
git clone git@github.com:ooade/global-context-example.git
cd global-context-example
```
or
HTTPS:
```sh
git clone https://github.com/ooade/global-context-example.git
cd global-context-example
```
### Run locally
Start a live-reload development server:
```sh
yarn start
```
---
If you find yourself wanting to do this, you should just use Redux or go with [Recoiljs](https://recoiljs.org/).
If you have any question, feel free to [reach out to me](https://twitter.com/_ooade)!