Closed usulpro closed 8 years ago
I use addWithInfo to show prop types of the component
addWithInfo
import SmTextarea from '../index'; ... .addWithInfo('Prop Types', () => { return ( <Something /> ); }, { propTables: [SmTextarea] })
It works well while development but after deploying to GitHub it reduced to one letter (see here "t" Component) Looks like it minified for publishing but is there any way to show real name of a component?
You can define a displayName for your components. See kadirahq/react-storybook-addon-info/issues/26
displayName
thank you!
You are welcome!
I use
addWithInfo
to show prop types of the componentIt works well while development but after deploying to GitHub it reduced to one letter (see here "t" Component) Looks like it minified for publishing but is there any way to show real name of a component?