@heridux/react

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i @heridux/react

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

15.8 kB

Total Files

6

Last publish

Collaborators

  • ybochatay