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
Adding displayName to the Spec #8
Conversation
Allows the user to specify a display name for the component. This is set automatically by the JSX compiler when using JSX. When the display name is not set, all componenents are displayed as <Unknown>. http://facebook.github.io/react/docs/component-specs.html#displayname
Looks good, but how do you actually specify the display name? |
Also, could you please exclude |
Ah, will do on the exclude for I was thinking to manually create a spec to specify the display name. But I can add a function |
I was thinking that something like |
Right. I've added the |
👍 thanks! |
Thank you! On Wednesday, January 28, 2015, Phil Freeman notifications@github.com
|
Allows the user to specify a display name for the component. This is set automatically by the JSX compiler when using JSX. When the display name is not set, all components are displayed as
<Unknown>
.I realize this is adding an additional property to the Spec record. However, I admit that being able to name the components was quite helpful during app development and debugging. If your intention is to keep the Spec small, I could go either way on this. Or perhaps there is a better or alternative approach? I am open to ideas!