Skip to content

Allows theming of HOC and components without a function name #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

markusguenther
Copy link
Member

This PR is a mirror of the open PR in the javivelasco/react-css-themr Repository.

javivelasco#84

Allows for theming of HOC and components without a function name. Since HOC have different function name than original, we should check for displayName 1st and fall back to Component for nameless components.

Allows for theming of HOC and components without a function name. Since HOC have different function name than original, we should check for `displayName` 1st and fall back to `Component` for nameless components.
@markusguenther markusguenther merged commit 2b692c1 into FriendsOfReactJS:master Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants