React Shared State
React Shared State
Very simple shared state for your react app.
Install
yarn add react-shared-state
or
npm install react-shared-state
Quickstart
https://soofty.gitbook.io/react-shared-state/quickstart
Documentation
https://soofty.gitbook.io/react-shared-state/documentation
Live example
https://codesandbox.io/s/wy308n0k88
0.1.x => 0.2.x migration guide
mapStateToProps now accepts
store
instead ofstore.state
as first argumentconnect
no longer passesstore
by it's name to a componentPreferable way to use connect is
YourProvider.connect
instead of building custom functionChanged Typescript's generics order from TOuterProps, TInnerProps to TInnerProps, TOuterProps (recompose format)
0.2.x => 0.3.x migration guide
getProvider replaced with createProvider(StoreClass?: class, storeId?: string)
Last updated