Commit f82f392
Adds a TypeScript overview page (#6120)
* Start of the typescript page
* Intro
* Intro
* Use State
* Use Reducer
* Start of context
* Use Ref
* Events
* Wrap up 1st draft
* Better titles
* Apply suggestions from code review
Co-authored-by: Tom Sherman <the.tomsherman@gmail.com>
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>
* Note types/react and types/react-dom, and tone down the usecontext null check
* Feedback
* Given a 2nd run through of the doc
* Apply suggestions from code review
Co-authored-by: Ricky <rickhanlonii@gmail.com>
* Document where `State` is coming from
* Link what inferred types are
* Remove "knock-on"
We already say "cause" which makes "knock-on" a bit redundant
* Move useRef TS usage to useRef reference page
dropped useEffect since there's nothing specific about this hook.
* Add installation section
* Link to framework specific guides
* Edits
* Edit footer
* Rm useRef docs
---------
Co-authored-by: Tom Sherman <the.tomsherman@gmail.com>
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Sebastian Silbermann <sebastian.silbermann@klarna.com>1 parent cd13b52 commit f82f392
File tree
4 files changed
+499
-0
lines changed- src
- components/MDX/Sandpack
- content/learn
4 files changed
+499
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments