Commit 309d65a
authored
add React.FC example with predefined type
To show a fair comparison between the different approaches on how to type a react component in a readable way, the React.FC<AppProps> approach should be also listed. It may be technically similar but has the best readability from my experience. (left to right instead right to left)1 parent 09217c9 commit 309d65a
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments