Types for react-redux connect that work inside HOCs
npm i @dabapps/connect-hoc -P
(-P
is shorthand for --save-prod
and will add it to your package.json
dependencies)
import { ConnectHOC } from '@dabapps/connect-hoc';
import { connect } from 'react-redux';
// ...
(connect as ConnectHOC)<StateProps, DispatchProps, Etc>(
mapStateToProps,
mapDispatchToProps
)(MyComponent);
- Clone the repo
- Ensure you are using the correct version of node with nvm
- Install dependencies with
npm ci
- Make your changes
- Run tests with
npm test
- Open pull request
For guidelines regarding the code of conduct when contributing to this repository please review https://www.dabapps.com/open-source/code-of-conduct/