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
Ran into the following issue -- apologies if it's a duplicate; my search of existing issues didn't turn up anything similar.
exportconstTestComponent=props=><divonClick={()=>props.test()}/>// no errorexportconstmapStateToProps=(_,props)=>({otherProp: props.otherProp,// 'otherProp' is missing in props validation})
Expected: props.test() should throw a prop-types error since TestComponent has no propTypes defined.
Also expected: the props.otherProp in mapStateToProps should not throw since mapStateToProps is not a component.
eslint: 2.2.0
eslint-plugin-react: 4.1.0
The text was updated successfully, but these errors were encountered:
Ran into the following issue -- apologies if it's a duplicate; my search of existing issues didn't turn up anything similar.
Expected:
props.test()
should throw aprop-types
error sinceTestComponent
has no propTypes defined.Also expected: the
props.otherProp
inmapStateToProps
should not throw sincemapStateToProps
is not a component.eslint: 2.2.0
eslint-plugin-react: 4.1.0
The text was updated successfully, but these errors were encountered: