Skip to content

Test false positive component detection for destructured createElement#1098

Merged
ljharb merged 1 commit intojsx-eslint:masterfrom
arian:createElement-display-test
Dec 27, 2018
Merged

Test false positive component detection for destructured createElement#1098
ljharb merged 1 commit intojsx-eslint:masterfrom
arian:createElement-display-test

Conversation

@arian
Copy link
Copy Markdown
Contributor

@arian arian commented Mar 2, 2017

See #1089 (comment)

Before that pull request an arrow function such as: () => foo(bar("x")) would be detected as a component if createElement was destructured (import {createElement} from 'react').

This adds a test for display-name that it's ok that a function like that does not need a display name, as it's not a component.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants