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

Make sure all class constructors in the docs call super with props #11105

Closed
wants to merge 1 commit into from
Closed

Make sure all class constructors in the docs call super with props #11105

wants to merge 1 commit into from

Conversation

yangshun
Copy link
Contributor

@yangshun yangshun commented Oct 5, 2017

Frankly I'm not sure whether it is strictly necessary to do "always call the base constructor with props", but it is mentioned here so I think this should be enforced in the documentation at the very least.

Some of the test fixtures in /src have components which do not call the super() with props as well. I can make a PR to fix those if you like.

Also, I understand that the docs page is undergoing migration at the moment. If I should be making doc changes in the new repo or hold off further changes until the migration is complete, do let me know.

@reactjs-bot
Copy link

Deploy preview ready!

Built with commit 551031e

https://deploy-preview-11105--reactjs.netlify.com

@yangshun
Copy link
Contributor Author

yangshun commented Oct 7, 2017

Closed by reactjs/react.dev#8

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

Successfully merging this pull request may close these issues.

3 participants