react-docgen-typescript
react-docgen-typescript copied to clipboard
ES6 reassigned props default values not extracted
Hey 👋
Thanks for the great library
I noticed that default values of props do not get extracted when their name is re-assigned:
export default function Text({ as: Component = 'p' }) {
//
}
defaultValue.value
will then be null
for me. If I remove the re-assignment to Component
, it will work.
Thanks
There was no activity for a long time. Closing this issue as obsolete. In case it is still valid, please, open a new one.
There was no activity for a long time. The issue will be closed soon.
Closing this issue as obsolete.