You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classFooextendsReact.Component{constbar=this.props.bar;render: function(){return<div>{bar.baz}</div>}}Foo.propTypes={bar: React.PropTypes.shape({baz: React.PropTypes.string// not ok, Prop defined but not used})};
The text was updated successfully, but these errors were encountered:
The no-unused-prop-types rule does not support shape props at the moment as such detection is very difficult. If you use shape props, I recommend setting the skipShapeProps option to true on the rule.
Duplicate of #819. Will track further discussion of shape props there.
this is working :
but this seems not work:
The text was updated successfully, but these errors were encountered: