Commit d0e7afe
committed
Improve the class component defaultProps example
In the current example, we have a type definition for props but do not
make use of it for defaultProps. This can lead to a mismatch between
defaultProps and props.1 parent d19fab5 commit d0e7afe
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
0 commit comments