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
importReactfrom'react';constTestStateless=React.memo(props=>(<div>{props.children}</div>));classTestextendsReact.Component{render(){return<TestStateless><p>I am wrapped in TestStateless</p></TestStateless>}}exportdefaultTest;
I would expect no error, but I get errors as though ignoreStateless were its default of false.
When I define the stateless component outside React.memo then wrap it,
importReactfrom'react';conststateless=props=><div>{props.children}</div>constTestStateless=React.memo(stateless);classTestextendsReact.Component{render(){return<TestStateless><p>I am wrapped in TestStateless</p></TestStateless>}}exportdefaultTest;
there are no errors.
The text was updated successfully, but these errors were encountered:
Given the following code
and rule config,
I would expect no error, but I get errors as though ignoreStateless were its default of false.
When I define the stateless component outside React.memo then wrap it,
there are no errors.
The text was updated successfully, but these errors were encountered: