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
importReact,{PropTypes}from'react'functionFoo({bar}){// react/prop-types error reported for bar on this lineconst{baz}=Fooreturn<div>{baz}{bar}</div>}Foo.propTypes={bar: PropTypes.string.isRequired,}Foo.baz='hi'
As noted in #735:
Here's how I can reproduce the issue:
This does not produce any error:
Here's a real use case
Looks like destructuring a property off of the function (whether inside the function itself or not) is causing issues.
The text was updated successfully, but these errors were encountered: