We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12cf53a + 9b57965 commit 0b4d0d9Copy full SHA for 0b4d0d9
1 file changed
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