Commit Graph

480 Commits

Author SHA1 Message Date
Thomas Cleary
2ad2bb3ce7 Fix typo (#5111) 2022-09-25 17:54:17 +05:30
dan
b59b64f386 [Beta] Upgrade to MDX 2 (#5107)
* [Beta] MDX 2

* Fix up old pages
2022-09-24 17:37:15 +01:00
dan
372f852f1e [Beta] Next patch to fail on errors (#5106) 2022-09-24 15:39:48 +01:00
Dan Abramov
477bafacf5 Revert "useEvent"
This reverts commit 807116a602.
2022-09-24 13:03:28 +01:00
Dan Abramov
fcd0ca3ec9 Revert "ts"
This reverts commit c865f07fde.
2022-09-24 13:03:21 +01:00
dan
402581e15f [Beta] Bump React/Next (#5105)
* [Beta] Upgrade React/Next

* useEvent

* ts
2022-09-24 12:49:25 +01:00
dan
4c37115f3f [Beta] Code style tweaks (#5104)
* Use named React imports

* More manual edits

* Remove displayNames

* rm dead code
2022-09-24 12:30:19 +01:00
dan
26fc12cf0a [Beta] Remove linter TODOs (#5102) 2022-09-24 02:02:32 +01:00
dan
d56aec2dd1 [Beta] Remove inline useEvent impl (#5101) 2022-09-23 22:58:50 +01:00
dan
bd0f7c02f0 [Beta] Use React versions from package.json (#5100) 2022-09-23 22:39:11 +01:00
Dan Abramov
0826c798a6 Hide package.json where it is not relevant 2022-09-23 22:28:43 +01:00
Dan Abramov
4ff4d8fd11 Tweak the experimental notice 2022-09-23 22:23:17 +01:00
Dan Abramov
59f0f9831a [Beta] Tweak colors 2022-09-23 22:10:46 +01:00
Ricky
e0720af286 [beta] Update CodeStep colors (#5089)
* [beta] Update CodeStep colors

* Add back green
2022-09-23 20:02:00 +01:00
George Song
6329438fdd [Beta] build: ignore markdown files in content (#5098)
* build: ignore markdown files in content

* Update .prettierignore

Co-authored-by: dan <dan.abramov@gmail.com>
2022-09-23 19:51:21 +01:00
George Song
caab52acae [Beta] Fix/extracting state logic into a reducer typo (#5096)
* style: prettier according to repo rules 💅

* fix: typo
2022-09-23 18:43:00 +01:00
kaushalyap
23218f66c5 removed unused useState (#5095) 2022-09-23 14:47:34 +01:00
dan
17dca33409 Add semi 2022-09-22 17:29:42 +01:00
Danilo Woznica
a0bc4d2cf9 [Beta] fix(SandpackConsole): avoid unsubscribing the logs listeners (#5093)
* Update 3 files

* Delete console-issue.md

* Filter out console error addendum

Co-authored-by: dan <dan.abramov@gmail.com>
2022-09-22 16:13:53 +01:00
zqran
97cfcc019f [Beta] Unified api format (#5090) 2022-09-22 15:14:09 +01:00
Dan Abramov
8a9efff83d [Beta] Tweak loop guidance 2022-09-22 15:13:55 +01:00
kaushalyap
5812e54093 Removed extra closing curly braces from challenge 5 (#5088) 2022-09-22 03:11:44 +01:00
dan
f9d4dda88c [Beta] useMemo & useCallback edits (#5087) 2022-09-22 01:17:30 +01:00
Dan Abramov
8f6a4bf59e [Beta] Fix some dead links 2022-09-22 00:13:31 +01:00
zqran
d1fee87a0f [Beta] fix typo (#5082) 2022-09-20 14:33:21 +01:00
Eugene Dzhumak
841d3d1b75 [Beta]: fix typo on you-might-not-need-an-effect (#5077)
fix typo on you-might-not-need-an-effect
2022-09-17 23:44:37 +01:00
dan
a6c164d66a Fix a mistake 2022-09-17 20:47:41 +01:00
Simon Taranto
d83e0aa59c Small typo fix with forwardRef (#5075) 2022-09-17 08:52:28 +02:00
kaushalyap
5bcae4f884 Fixed the challenge 4 expected output when initial state of "showForm" changed to false. Since there can be only one empty message when the initial state of "showForm" changed from true to false. (#5071) 2022-09-16 04:12:03 +01:00
Dan Abramov
75563fe679 Fix signature 2022-09-15 21:25:25 +01:00
Dan Abramov
76d14c8123 oops 2022-09-15 21:22:50 +01:00
David McCabe
8d63e0d219 [beta] Added memo API reference page (#5059)
* Create Fragment API reference page

* Minor formatting changes

* Create memo API reference page

* [beta] Dan's suggestions for memo

* Update beta/src/content/apis/react/memo.md

Co-authored-by: Strek <ssharishkumar@gmail.com>

* edits

Co-authored-by: Rick Hanlon <rickhanlonii@fb.com>
Co-authored-by: Strek <ssharishkumar@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-09-15 21:15:27 +01:00
Dan Abramov
da47b1a14b Bump numbers 2022-09-15 20:28:08 +01:00
Dan Abramov
62d1ffef3e tweak 2022-09-15 20:26:21 +01:00
Sebastian Silbermann
0813c24d78 [Beta] Ensure forwardRef API docs use pattern that ensures a display name (#5070) 2022-09-15 21:17:52 +02:00
dan
954ef33745 [Beta] lazy API (#5069) 2022-09-15 20:13:51 +01:00
Andrew Clark
5ceec201ae [Beta] Initial API doc for Suspense (#4955)
* [Beta] Initial API doc for Suspense

This doesn't include everything but I think it's good enough for
a start.

I didn't add any interactive examples yet because I want to use the
`use` API, so I'll wait until that's documented.

* edits

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-09-15 19:41:14 +01:00
dan
ec0292bd25 [Beta] forwardRef API (#5068)
* Initial forwardRef draft

* more info

* more link

* oops

Co-authored-by: Arati Chilad <58401542+arati-1@users.noreply.github.com>
2022-09-15 17:54:59 +01:00
Dan Abramov
348d1407ce Fix formatting 2022-09-15 13:28:25 +01:00
dan
651d31ff6f [Beta] Fragment edits (#5067)
* [Beta] Fragment edits

* Add some links
2022-09-15 13:23:24 +01:00
Ricky
fd46d48c05 [beta] Add flushSync docs (#4930)
* [beta] Add flushSync docs

* tweaks

* tweaks

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-09-15 12:37:48 +01:00
Dan Abramov
94e99f38d9 add a break 2022-09-15 12:18:11 +01:00
Dan Abramov
1517828434 tweak wording 2022-09-15 12:15:18 +01:00
Dan Abramov
e14de80de4 align wording 2022-09-15 12:09:31 +01:00
Dan Abramov
a6322a46a0 fix mistake 2022-09-15 11:52:19 +01:00
Dan Abramov
25ced88fef emoji 2022-09-15 06:20:11 +01:00
Dan Abramov
8e422e03e9 stricter wording 2022-09-15 06:19:35 +01:00
Dan Abramov
176b93c964 [Beta] Higher-level comments in useCallback 2022-09-15 05:45:21 +01:00
dan
1ae8be5bbd oops2 2022-09-15 04:08:58 +01:00
dan
e7115470bb oops 2022-09-15 04:07:31 +01:00