diff --git a/README.md b/README.md index 6075fd87..5080b1cf 100644 --- a/README.md +++ b/README.md @@ -445,7 +445,7 @@ export class Greet extends React.Component { const { name } = this.props; return
Hello ${name.toUpperCase()}!
; } - static defaultProps = { name: 'world' }; + static defaultProps: Partial = { name: 'world' }; } // Type-checks! No type assertions needed!