We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've noticed the rule doesn't work when the props are used in getInitialState. Here is a test case:
var React = require('react'); React.createClass({ propTypes: { initialValue: React.PropTypes.number }, getDefaultProps: function() { return { initialValue: 0 }; }, getInitialState: function() { return { value: this.props.initialValue }; }, render: function() { return null; } });
The text was updated successfully, but these errors were encountered:
8b7b848
No branches or pull requests
I've noticed the rule doesn't work when the props are used in getInitialState.
Here is a test case:
The text was updated successfully, but these errors were encountered: