0.0.4 • Published 3 years ago

@heridux/react v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Table of Contents

connect

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

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