Skip to content
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

this.constructor.name no longer returns the component’s displayName correctly #7

Open
brandondurham opened this issue May 31, 2018 · 0 comments

Comments

@brandondurham
Copy link

I’m trying to get the displayName of the component in the constructor. Prior to using class-autobind, all I had to do was use this.constructor.name and it would return the component’s displayName. Now it returns something more like bound ComponentName.

Is there a different way to access this value when using class-autobind?

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

No branches or pull requests

1 participant