An open API service indexing awesome lists of open source software.

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.

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.