@dabapps/connect-hoc
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

@dabapps/connect-hoc

Types for react-redux connect that work inside HOCs

Install

npm i @dabapps/connect-hoc -P

(-P is shorthand for --save-prod and will add it to your package.json dependencies)

Usage

import { ConnectHOC } from '@dabapps/connect-hoc';
import { connect } from 'react-redux';

// ...

(connect as ConnectHOC)<StateProps, DispatchProps, Etc>(
  mapStateToProps,
  mapDispatchToProps
)(MyComponent);

Contributing

  1. Clone the repo
  2. Ensure you are using the correct version of node with nvm
  3. Install dependencies with npm ci
  4. Make your changes
  5. Run tests with npm test
  6. Open pull request

Code of conduct

For guidelines regarding the code of conduct when contributing to this repository please review https://www.dabapps.com/open-source/code-of-conduct/

Package Sidebar

Install

npm i @dabapps/connect-hoc

Weekly Downloads

9

Version

0.0.0

License

BSD-3-Clause

Unpacked Size

9.57 kB

Total Files

10

Last publish

Collaborators

  • dabapps