We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c218dc5 + 641a6ec commit c6c8646Copy full SHA for c6c8646
README.md
@@ -445,7 +445,7 @@ export class Greet extends React.Component<Props> {
445
const { name } = this.props;
446
return <div>Hello ${name.toUpperCase()}!</div>;
447
}
448
- static defaultProps = { name: 'world' };
+ static defaultProps: Partial<Props> = { name: 'world' };
449
450
451
// Type-checks! No type assertions needed!
0 commit comments