@@ -61,33 +61,33 @@ Cheatsheets for experienced React developers getting started with TypeScript
61
61
- [ VS Code Extensions] ( #vs-code-extensions )
62
62
- [ React + TypeScript Starter Kits] ( #react--typescript-starter-kits )
63
63
- [ Video Tutorial] ( #video-tutorial ) <!-- END-SECTION:setup-toc-->
64
- - [ Section 2: Getting Started] ( #section-2-- getting-started )
64
+ - [ Section 2: Getting Started] ( #section-2-getting-started )
65
65
- [ Function Components] ( #function-components )
66
66
- [ Hooks] ( #hooks )
67
67
- [ useState] ( #usestate )
68
68
- [ useReducer] ( #usereducer )
69
69
- [ useEffect / useLayoutEffect] ( #useeffect--uselayouteffect )
70
70
- [ useRef] ( #useref )
71
- - [ Option 1: DOM element ref] ( #option-1-- dom-element-ref )
72
- - [ Option 2: Mutable value ref] ( #option-2-- mutable-value-ref )
71
+ - [ Option 1: DOM element ref] ( #option-1-dom-element-ref )
72
+ - [ Option 2: Mutable value ref] ( #option-2-mutable-value-ref )
73
73
- [ See also] ( #see-also )
74
74
- [ useImperativeHandle] ( #useimperativehandle )
75
75
- [ Custom Hooks] ( #custom-hooks )
76
- - [ More Hooks + TypeScript reading:] ( #more-hooks--- typescript-reading- )
77
- - [ Example React Hooks + TypeScript Libraries:] ( #example-react-hooks--- typescript-libraries- )
76
+ - [ More Hooks + TypeScript reading:] ( #more-hooks--typescript-reading )
77
+ - [ Example React Hooks + TypeScript Libraries:] ( #example-react-hooks--typescript-libraries )
78
78
- [ Class Components] ( #class-components )
79
79
- [ Typing getDerivedStateFromProps] ( #typing-getderivedstatefromprops )
80
- - [ You May Not Need ` defaultProps ` ] ( #you-may-not-need-- defaultprops- )
81
- - [ Typing ` defaultProps ` ] ( #typing-- defaultprops- )
80
+ - [ You May Not Need ` defaultProps ` ] ( #you-may-not-need-defaultprops )
81
+ - [ Typing ` defaultProps ` ] ( #typing-defaultprops )
82
82
- [ Consuming Props of a Component with defaultProps] ( #consuming-props-of-a-component-with-defaultprops )
83
83
- [ Problem Statement] ( #problem-statement )
84
84
- [ Solution] ( #solution )
85
85
- [ Misc Discussions and Knowledge] ( #misc-discussions-and-knowledge )
86
86
- [ Typing Component Props] ( #typing-component-props )
87
87
- [ Basic Prop Types Examples] ( #basic-prop-types-examples )
88
88
- [ Useful React Prop Type Examples] ( #useful-react-prop-type-examples )
89
- - [ Types or Interfaces?] ( #types-or-interfaces- )
90
- - [ TL;DR] ( #tl-dr )
89
+ - [ Types or Interfaces?] ( #types-or-interfaces )
90
+ - [ TL;DR] ( #tldr )
91
91
- [ More Advice] ( #more-advice )
92
92
- [ Useful table for Types vs Interfaces] ( #useful-table-for-types-vs-interfaces )
93
93
- [ getDerivedStateFromProps] ( #getderivedstatefromprops )
@@ -96,17 +96,17 @@ Cheatsheets for experienced React developers getting started with TypeScript
96
96
- [ Context] ( #context )
97
97
- [ Basic Example] ( #basic-example )
98
98
- [ Extended Example] ( #extended-example )
99
- - [ forwardRef/createRef] ( #forwardref-createref )
99
+ - [ forwardRef/createRef] ( #forwardrefcreateref )
100
100
- [ Generic forwardRefs] ( #generic-forwardrefs )
101
101
- [ Option 1 - Wrapper component] ( #option-1---wrapper-component )
102
102
- [ Option 2 - Redeclare forwardRef] ( #option-2---redeclare-forwardref )
103
103
- [ More Info] ( #more-info )
104
104
- [ Portals] ( #portals )
105
105
- [ Error Boundaries] ( #error-boundaries )
106
- - [ Option 1: Using react-error-boundary] ( #option-1-- using-react-error-boundary )
107
- - [ Options 2: Writing your custom error boundary component] ( #options-2-- writing-your-custom-error-boundary-component )
108
- - [ Concurrent React/React Suspense] ( #concurrent-react-react -suspense )
109
- - [ Troubleshooting Handbook: Types] ( #troubleshooting-handbook-- types )
106
+ - [ Option 1: Using react-error-boundary] ( #option-1-using-react-error-boundary )
107
+ - [ Options 2: Writing your custom error boundary component] ( #options-2-writing-your-custom-error-boundary-component )
108
+ - [ Concurrent React/React Suspense] ( #concurrent-reactreact -suspense )
109
+ - [ Troubleshooting Handbook: Types] ( #troubleshooting-handbook-types )
110
110
<!-- START-SECTION:types-toc-->
111
111
- [ Union Types and Type Guarding] ( #union-types-and-type-guarding )
112
112
- [ Optional Types] ( #optional-types )
@@ -127,15 +127,15 @@ Cheatsheets for experienced React developers getting started with TypeScript
127
127
- [ Frequent Known Problems with TypeScript] ( #frequent-known-problems-with-typescript )
128
128
- [ TypeScript doesn't narrow after an object element null check] ( #typescript-doesnt-narrow-after-an-object-element-null-check )
129
129
- [ TypeScript doesn't let you restrict the type of children] ( #typescript-doesnt-let-you-restrict-the-type-of-children ) <!-- END-SECTION:types-toc-->
130
- - [ Troubleshooting Handbook: Operators] ( #troubleshooting-handbook-- operators )
131
- - [ Troubleshooting Handbook: Utilities] ( #troubleshooting-handbook-- utilities )
132
- - [ Troubleshooting Handbook: tsconfig.json] ( #troubleshooting-handbook-- tsconfigjson )
133
- - [ Troubleshooting Handbook: Fixing bugs in official typings] ( #troubleshooting-handbook-- fixing-bugs-in-official-typings )
134
- - [ Troubleshooting Handbook: Globals, Images and other non-TS files] ( #troubleshooting-handbook-- globals- -images-and-other-non-ts-files )
130
+ - [ Troubleshooting Handbook: Operators] ( #troubleshooting-handbook-operators )
131
+ - [ Troubleshooting Handbook: Utilities] ( #troubleshooting-handbook-utilities )
132
+ - [ Troubleshooting Handbook: tsconfig.json] ( #troubleshooting-handbook-tsconfigjson )
133
+ - [ Troubleshooting Handbook: Fixing bugs in official typings] ( #troubleshooting-handbook-fixing-bugs-in-official-typings )
134
+ - [ Troubleshooting Handbook: Globals, Images and other non-TS files] ( #troubleshooting-handbook-globals-images-and-other-non-ts-files )
135
135
- [ Editor Tooling and Integration] ( #editor-tooling-and-integration )
136
136
- [ Linting] ( #linting )
137
- - [ Other React + TypeScript resources] ( #other-react--- typescript-resources )
138
- - [ Recommended React + TypeScript talks] ( #recommended-react--- typescript-talks )
137
+ - [ Other React + TypeScript resources] ( #other-react--typescript-resources )
138
+ - [ Recommended React + TypeScript talks] ( #recommended-react--typescript-talks )
139
139
- [ Time to Really Learn TypeScript] ( #time-to-really-learn-typescript )
140
140
- [ Example App] ( #example-app )
141
141
0 commit comments