Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Functional components returning conditionals fix #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeremytowne
Copy link

  • fixing an issue where the displayname was not being added to functional components that returned conditionals

Ex: If we have some functional component:

function MyComponent(props) {
  return props.someBoolean ? (<div>something</div>) : null
}

A displayName would not be added to this component without this fix.

@UnbearableBear
Copy link

+1 !! I also need this fix in my current project ! Glad to see it there, saves me some precious time if it's merged in. In the meanwhile, I have to add add "displayName" manually for conditional returns.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants