Table of Contents
connect
- **See: https://react-redux.js.org/ **
Connect a react component to heridux store
Parameters
-
mapStateToProps
Function properties to inject to the component -
mapDispatchToProps
Function 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
-
selector
Function 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
- **See: https://react-redux.js.org/ **
Connect a react component to heridux store, inside a component
Parameters
-
mapStateToProps
Function properties to inject to the component -
mapDispatchToProps
Function functions to inject to the component
Returns Function function to connect the component