React Shared State
Last updated
Last updated
Very simple shared state for your react app.
yarn add react-shared-state
or
npm install react-shared-state
https://soofty.gitbook.io/react-shared-state/quickstart
https://soofty.gitbook.io/react-shared-state/documentation
https://codesandbox.io/s/wy308n0k88
mapStateToProps now accepts store
instead of store.state
as first argument
connect
no longer passes store
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)
getProvider replaced with createProvider(StoreClass?: class, storeId?: string)