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

react/prop-types warns about destructured spread other properties #46

Closed
rocketraman opened this issue Mar 30, 2015 · 0 comments
Closed

Comments

@rocketraman
Copy link

Sometimes a component does not care about various properties it receives -- they are just passed on to children as-is, and as per the FB docs the canonical way to do this is via a destructuring assignment with a spread operator on the last variable.

prop-types warns that props validation is missing for that other variable:

warning  'other' is missing in props validation  react/prop-types

I don't think react/prop-types should raise a warning about these "other" properties.

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

No branches or pull requests

2 participants