Package Exports
- react-simple-context-state
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-simple-context-state) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-simple-state
Dead simple top down state management for React
What Does it Do?
React is simple to work with, especially when you can stay disciplined and have all your state trickle down through the root of your application. Redux patterns encourage this but comes with extra boilerplate and futzing around with immutability and reducers.
This library is meant to make state management as simple as possible with the least amount of work.
Setting it up looks like this:
- Create one or more instances of ReactSimpleStateStore
- Add a higher level ReactSimpleStateProvider
- Consume values from a context consumer
- Update state through the shared instance
That's it. There are reducers but you get all the deterministic benefits of top level immutable state management approach.
Installation
yarn add react-simple-state