Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new example for non-HOC component that uses connect #206

Closed
ORESoftware opened this issue Feb 14, 2020 · 2 comments
Closed

Add new example for non-HOC component that uses connect #206

ORESoftware opened this issue Feb 14, 2020 · 2 comments

Comments

@ORESoftware
Copy link

I am looking for a TypeScript example using:

import {connect} from 'react-redux'

the first example is this one:
https://github.com/piotrwitek/react-redux-typescript-guide#--nested-hoc---wrapping-a-component-injecting-props-and-connecting-to-redux-

really? :) the first example of showing how to use TS types with connect() is a HOC? Can we get an example of using connect() with a regular non-HOC component? thx

@ORESoftware
Copy link
Author

bump

@piotrwitek
Copy link
Owner

Hey @ORESoftware
The section you're referring to is HOC section, not a connected component section.
Here is connected components section: https://github.com/piotrwitek/react-redux-typescript-guide#--redux-connected-counter

Could you please next time check the documentation more thoroughly, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants