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

Do not require 'children' as missing prop #458

Closed
seekshiva opened this issue Feb 22, 2016 · 2 comments
Closed

Do not require 'children' as missing prop #458

seekshiva opened this issue Feb 22, 2016 · 2 comments

Comments

@seekshiva
Copy link

When the prop-types rules is on, don't ask 'children' to be declared in propType. It is provided by React by default.

@yannickcr
Copy link
Member

It as already been discussed in #7, see "As for exceptions" section in documentation.

If you do not want to declare a propType for props.children you can still add it to the ignore list (see rules options)

@seekshiva
Copy link
Author

Thanks

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

No branches or pull requests

2 participants