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

docs(hoc): Use function component as example instead of class #221

Merged
merged 6 commits into from
Apr 29, 2020

Conversation

mjsarfatti
Copy link
Collaborator

It's especially useful if you want to integrate a library that comes only as hooks in a class component.

It's especially useful if you want to integrate a library that comes only as hooks in a class component.
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only using a function component is enough. There's nothing special about class components regarding types and function components are the new default for components anyway.

@eps1lon eps1lon changed the title Add functional component example docs(hoc): Use function component as example instead of class Apr 29, 2020
@eps1lon eps1lon merged commit e6b3a49 into typescript-cheatsheets:master Apr 29, 2020
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

Successfully merging this pull request may close these issues.

2 participants