You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I’m trying to get the
displayName
of the component in the constructor. Prior to using class-autobind, all I had to do was usethis.constructor.name
and it would return the component’sdisplayName
. Now it returns something more likebound ComponentName
.Is there a different way to access this value when using class-autobind?
The text was updated successfully, but these errors were encountered: