suggestion: connected generic component
Author: bboxstartCreated Feb 9, 2018Updated May 29, 2026
LabelsenhancementIssueHunt
The repository already contains nice examples of generic components (generic-list) and connected components (sfc-counter-connected), but I'm having problems with the correct declaration and usage of connected generic components.
I would like to be able to write something like:
export const ConnectedListExtended<T> = connect<GenericListProps<T>, {}, OwnProps>(mapStateToProps)(GenericList<T>);
An example of the combination of these two examples would be really helpfull.
Thanks in advance!
IssueHunt Summary
Backers (Total: $50.00)
issuehunt ($50.00)
Submitted pull Requests
- #262 Add connected generic list example
- #279 docs(connect): add connected generic component typing example
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Source: piotrwitek/react-redux-typescript-guide