Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@heridux/react

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heridux/react

Use heridux with react (HOC or hook)

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Table of Contents

  • connect
  • Provider
  • useSelector
  • useStore
  • connect

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

Keywords

FAQs

Package last updated on 16 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc