Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabinadams/react-shared-state-hooks
Example of how to set up a shared state between function components in React using Hooks and the Context API
https://github.com/sabinadams/react-shared-state-hooks
Last synced: 23 days ago
JSON representation
Example of how to set up a shared state between function components in React using Hooks and the Context API
- Host: GitHub
- URL: https://github.com/sabinadams/react-shared-state-hooks
- Owner: sabinadams
- Created: 2019-09-29T07:31:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:48:12.000Z (11 months ago)
- Last Synced: 2024-10-09T21:53:52.591Z (about 1 month ago)
- Language: JavaScript
- Size: 4.34 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Project's Purpose
Explained in my [article on setting up shared state with react hooks and the context API](https://www.sabinthedev.com/shared-state-with-react-hooks-and-context-api/)
Demonstrates one method of sharing state between function components using React's Hooks and Context API.
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Starting the Demo Application
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.The page will reload if you make edits.
You will also see any lint errors in the console.