-  
 -   Notifications  
You must be signed in to change notification settings  - Fork 2.7k
 
Closed
Description
before v7.20.6 the react/display-name rule was okay with this pattern:
const renderer = a => listItem => ( <div>{a} {listItem}</div> ); // for context, that function might be used like this: <List list={[1, 2, 3]} renderItem={renderer(a)} />Since v7.20.6 the react/display-name rule reports that "Component definition is missing display name" on line 1.
There's nothing in the changelog for v7.20.6 regarding the react/display-name rule so I suspect this is unintentional?
I'm also confused as to how we'd fix this because renderer is not a component, nor is the function it returns. So maybe this is a false positive?
adamayres
Metadata
Metadata
Assignees
Labels
No labels