React Shared State
Very simple shared store for your react app.
0.1.x => 0.2.x migration guide
Important! 0.2 has changed connect
's behavior.
- mapStateToProps now accepts
store
instead ofstore.state
as first argument connect
no longer passesstore
by it's name to a component- Preferable way to use connect is
YourProvider.connect
instead of building custom function - Changed Typescript's generics order from TOuterProps, TInnerProps to TInnerProps, TOuterProps (recompose format)
Usage
Extending State (WebpackBin)
Logging
You can add logging for all stores
import { ProviderComponent} from 'react-shared-state'
ProviderComponent.DEBUG = true
or individually
<SimpleProvider ... debug={true}>
...
</SimpleProvider>