https://github.com/diasbruno/rcwe
React contexts with events.
https://github.com/diasbruno/rcwe
react react-context-api react-state-management
Last synced: 4 months ago
JSON representation
React contexts with events.
- Host: GitHub
- URL: https://github.com/diasbruno/rcwe
- Owner: diasbruno
- License: mit
- Created: 2019-04-10T00:16:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T04:08:06.000Z (over 3 years ago)
- Last Synced: 2025-10-11T03:12:05.087Z (8 months ago)
- Topics: react, react-context-api, react-state-management
- Language: JavaScript
- Homepage:
- Size: 767 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# rcwe (react context with events)
this library helps you by providing a simple (and typed) way
to work with the react context api.
it is inspired by [redux](https://github.com/reduxjs/redux), but with types (using [daggy](https://github.com/fantasyland/daggy) from [fantasy-land](https://github.com/fantasyland)).
### how to use
- first, create some nice types (see [examples/types.js](https://github.com/diasbruno/rcwe/blob/master/examples/types.js))
- create the context with rcwe api (see [examples/state.js](https://github.com/diasbruno/rcwe/blob/master/examples/state.js))
- you are now ready to use it (see [examples/index.js](https://github.com/diasbruno/rcwe/blob/master/examples/index.js))
### license
MIT.