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

No need for constructor #53

Merged
merged 1 commit into from
Oct 31, 2018
Merged

Conversation

abdullahtariq1171
Copy link
Contributor

@abdullahtariq1171 abdullahtariq1171 commented Oct 30, 2018

https://reactjs.org/docs/react-component.html#constructor

If you don’t initialize state and you don’t bind methods, you don’t need to implement a constructor for your React component.

@yjose yjose self-requested a review October 30, 2018 12:12
@yjose yjose merged commit fa675cd into yjose:master Oct 31, 2018
@yjose yjose mentioned this pull request Oct 31, 2018
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