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

About "When to use Class Component over Function Component" #51

Closed
thongncvn opened this issue Apr 11, 2020 · 1 comment
Closed

About "When to use Class Component over Function Component" #51

thongncvn opened this issue Apr 11, 2020 · 1 comment

Comments

@thongncvn
Copy link

https://github.com/sudheerj/reactjs-interview-questions#when-to-use-a-class-component-over-a-function-component

As of today, I believe that we can use Function Component for almost every use case, except when implementing Error Boundaries. Could you please share your opinion about this?

@sudheerj
Copy link
Owner

Yes, you are right. That is the reason I mentioned the second sentence.

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