0.0.4 • Published 5 years ago
@heridux/react v0.0.4
Table of Contents
connect
Connect a react component to heridux store
Parameters
mapStateToPropsFunction properties to inject to the componentmapDispatchToPropsFunction functions to inject to the component
Returns Function function to connect the component
Provider
Provider component
useSelector
Extract data from the store state, using a selector function
Parameters
selectorFunction function receiving state as argument
Returns any data extracted
useStore
Returns a reference to the store that was passed in to the component
Returns Heridux heridux store
connect
Connect a react component to heridux store, inside a component
Parameters
mapStateToPropsFunction properties to inject to the componentmapDispatchToPropsFunction functions to inject to the component
Returns Function function to connect the component