Open tiagoporto opened 4 years ago
My component uses a config as defaultProps
defaultProps
const config = { color: 'primary' } MyComponent.defaultProps = { color: config.color }
When the doc is generated the default value is generated not with the variable value primary, but by his name config.color
primary
config.color
If I use static value works fine
Is there a way to make it work?
My component uses a config as
defaultProps
When the doc is generated the default value is generated not with the variable value
primary
, but by his nameconfig.color
If I use static value works fine
Is there a way to make it work?