-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
There seems to be a regression in version 7.30.0. Functions like these are now treated like components and trigger the react/display-name rule:
export const demo = (a?: string) => (b?: string) => {
if (a == null) return null;
return b;
}
I understand that it might be hard to separate function components from regular functions, but aren't React components always capitalized? Couldn't that be a way to identify them?
This wasn't a problem in version 7.29.4 of eslint-plugin-react.
ashharrison90
Metadata
Metadata
Assignees
Labels
No labels