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
import React from 'react'
class MyComponent extends React.Component {
render() {
// should be "'someProp' is missing in props validation (react/prop-types)" but is not
this.props.someProp()
return <div {...{}} />
}
}
export default MyComponent
remove the spread {...{}} and everything is fine
The text was updated successfully, but these errors were encountered:
This was filed as #1601 for no-unused-prop-types and there's an unfinished PR in #1646.
If #1946 is merged, the fix will go into that common helper and apply for both rules.
Here is a minimal example:
remove the spread
{...{}}
and everything is fineThe text was updated successfully, but these errors were encountered: