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
Testcase:
var TestComp1 = React.createClass({ propTypes: { size: React.PropTypes.string.isRequired }, render: function() { var foo = { "abc": ["1", "2", "3"] }; var icons = foo[this.props.size].map(function() { return null; }); return (<div>{icons}</div>); } });
Output:
11:37 error 'size[].map' is missing in props validation react/prop-types ✖ 1 problem (1 error, 0 warnings)
this.props.size is being used as the key for the object, not as an object itself.
The text was updated successfully, but these errors were encountered:
Forgot to say, this is a regression in 2.6.0.
Sorry, something went wrong.
It should come from the new nested props support. I will investigate.
84d49dc
No branches or pull requests
Testcase:
Output:
this.props.size is being used as the key for the object, not as an object itself.
The text was updated successfully, but these errors were encountered: