We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript v3 added support for static defaultProps on React class components. As recommended in https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html (bottom of page) we will move to this pattern for class components, and rely on JS's argument defaults for functional components.
static defaultProps
The text was updated successfully, but these errors were encountered:
chandlerprall
Successfully merging a pull request may close this issue.
TypeScript v3 added support for
static defaultProps
on React class components. As recommended in https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html (bottom of page) we will move to this pattern for class components, and rely on JS's argument defaults for functional components.apply defaultProps to the class's interfacereact docgen un-requires props that have defaultsapply arg defaults to component interfacereact docgen already inspects functional components' arg defaultsThe text was updated successfully, but these errors were encountered: