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 467ebd1 + da7e3b7 commit 5c2b6b6Copy full SHA for 5c2b6b6
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