Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

issue with proptable name on deployed static site #26

Closed
Maxhodges opened this issue Jun 28, 2016 · 4 comments
Closed

issue with proptable name on deployed static site #26

Maxhodges opened this issue Jun 28, 2016 · 4 comments

Comments

@Maxhodges
Copy link
Contributor

under local host my story proptable heading shows

Prop Types
"Progress" Component

But after deployed as a static site, the component name is mutilated. Is this due to minification or something?

Prop Types
"t" Component
@roonyh
Copy link
Contributor

roonyh commented Jun 28, 2016

Yes, this is due to minification.

You can specify a displayName for your component, to get around it.

Progress.displayName = "Progress"

@Maxhodges
Copy link
Contributor Author

Maxhodges commented Jun 28, 2016

@Sorry but where exactly? can you give me some context with a demo? in my story? in my component?

@roonyh
Copy link
Contributor

roonyh commented Jun 28, 2016

@Maxhodges
Copy link
Contributor Author

thank you! @roonyh

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

No branches or pull requests

2 participants