Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Sync with reactjs.org @ e3073b03 #205

Open
wants to merge 405 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
405 commits
Select commit Hold shift + click to select a range
763d57b
Add 18.2.0 info in website (#4747)
swarnava Jun 15, 2022
d2da1a5
Remove useless comma (#4711)
mass2527 Jun 16, 2022
75bda80
fix sandbox tab button styles when selected (#4751)
moooeee Jun 17, 2022
6418ebc
fix: update broken link for Colorable (#4753)
aroyan Jun 17, 2022
df2673d
Fix minor grammar error (#4756)
peterhauke Jun 18, 2022
c3e09c5
Fix a typo in #4726 (#4762)
nvh95 Jun 20, 2022
fb65da6
docs: class properties and object spread are no longer experimental (…
bioub Jun 20, 2022
d8cd1ce
fix broken link to react router docs (#4763)
JNaftali Jun 21, 2022
f71c82f
fix(docs): remove redundancy (#4764)
akulsr0 Jun 22, 2022
5187ed6
[Beta] You Might Not Need an Effect (#4766)
gaearon Jun 22, 2022
8fb5a45
typo fix
gaearon Jun 22, 2022
c1c3d1d
fix typos (#4767)
balazsorban44 Jun 23, 2022
26caa64
Fixes hydrateRoot link (#4775)
geekf Jun 27, 2022
eca969c
fix(sandpack): message listeners (#4778)
danilowoz Jun 27, 2022
807fff2
fix: correct beta docs link in readme (#4779)
akulsr0 Jun 28, 2022
dec7140
Hooks FAQ: Change usePrevious recommendation (#4780)
gaearon Jun 28, 2022
d8171fa
[Beta] Discourage derived state more (#4781)
gaearon Jun 28, 2022
e2c5f1b
update conferences (#4785)
harish-sethuraman Jun 30, 2022
ee77056
[Beta] Fix empty message styling in console (#4784)
harish-sethuraman Jul 1, 2022
4d51741
fix typo in passing-data-deeply-with-context.md (#4795)
sunil-sharma-999 Jul 7, 2022
3a9b87c
Remove Singapore from the list (#4801)
zanechua Jul 8, 2022
f67fa22
fix: api links in content (#4806)
akulsr0 Jul 9, 2022
eed3bf3
Fix typo: Travel plan example (#4810)
rvgmiller Jul 12, 2022
7c01574
New conferences october 2022 (#4816)
lxmarinkovic Jul 14, 2022
8223159
Update 2022-03-29-react-v18.md (#4812)
gazfar Jul 14, 2022
a3c01e7
Accessibility update color contrast (#4850)
Arhell Aug 1, 2022
671cd2a
Fix event links for React Brussels 2022 (#4863)
AymenBenAmor Aug 2, 2022
a20f637
refactor: remove unused state (#4848)
shanpriyan Aug 3, 2022
efbe84e
Fix a typo (#4870)
thivi Aug 4, 2022
318981f
fixed having duplicate tailwind classes in pages/blog (#4872)
Rec0iL99 Aug 5, 2022
6fa9ded
Fix Robin Pokorny’s article link (#4867)
abdulrahmanhatem Aug 5, 2022
e42f16e
Reword "Invalid ARIA Prop Warning" advice (#4844)
sophiebits Aug 5, 2022
5cea9c4
[Beta] Lifecycle of Reactive Effects (#4875)
gaearon Aug 5, 2022
9fb359f
Rm dead links
gaearon Aug 5, 2022
3791088
fix: typo (#4876)
shanpriyan Aug 5, 2022
8e0b658
fix: update sinon fake timers broken link (#4879)
aroyan Aug 6, 2022
7c3e6dc
fix: update immutable js broken link (#4878)
aroyan Aug 6, 2022
4808a46
[Beta] fixed grammatical typo in render-and-commit.md (#4881)
Rec0iL99 Aug 7, 2022
0bf79b4
fix: update all immutable js broken link (#4885)
Zhhanou Aug 8, 2022
142c207
Update meetups.md (#4827)
dinatazy Aug 9, 2022
d2deddf
Change plural sentence to singular (#4758)
peterhauke Aug 9, 2022
d223fbd
Rephrase sentence (#4880)
lucianoayres Aug 9, 2022
47e1ce5
Update index.md (#4886)
binoy638 Aug 9, 2022
b162ea2
fixed incorrect function name in React.memo for IconDownload icon com…
Rec0iL99 Aug 10, 2022
4a87b19
Remove the redundant code (#4898)
CassieRan Aug 12, 2022
8a6d966
Add Robert Zhang (#4899)
Huxpro Aug 12, 2022
5fed75d
Fix comma position (#4897)
Aug 13, 2022
4de082d
Update createcontext.md
gaearon Aug 18, 2022
c527d4e
[Beta] Add ReactDOM Client APIs (#4909)
rickhanlonii Aug 19, 2022
2890036
Add stub pages for all React and ReactDOM APIs (#4910)
rickhanlonii Aug 19, 2022
6d5fbad
[Beta] Separating Events from Effects (#4913)
gaearon Aug 19, 2022
37cf98d
Update separating-events-from-effects.md
gaearon Aug 20, 2022
bf3df38
[Beta] Add a deep dive
gaearon Aug 22, 2022
caaf3c7
[beta] Add docs for old hydrate API (#4914)
rickhanlonii Aug 22, 2022
7cd1755
[Beta] Add more challenges (#4922)
gaearon Aug 23, 2022
cb3b246
Fix typos
gaearon Aug 23, 2022
5a9bacd
Add more nuance to explanation and challenge
gaearon Aug 23, 2022
605ad37
edits
gaearon Aug 23, 2022
46ebdc8
Fix hydrate root link (#4937)
yousefelgoharyx Aug 25, 2022
f829d8d
Create Fragment API reference page (#4927)
davidmccabe Aug 25, 2022
3b60bf4
[Beta] Removing Effect Dependencies (#4936)
gaearon Aug 26, 2022
98d6aec
[Beta] Add Support for All Console Methods and Hide Console Panel if …
lunaruan Aug 26, 2022
681a935
Fix example to createRoot
gaearon Aug 28, 2022
c5a1acd
Quick fix for misleading sentence
gaearon Aug 28, 2022
ea9e9ab
fix typos (#4938)
harish-sethuraman Aug 28, 2022
c6a7901
Update scaling-up-with-reducer-and-context.md (#4945)
Omer-Shahar Aug 29, 2022
537e0a3
[beta] upgrade sandpack and refactor sandpack.css (#4843)
danilowoz Aug 31, 2022
1319e8f
Fix color
gaearon Sep 1, 2022
b1431f3
[Beta] Challenges/Edits for Removing Effect Dependencies (#4952)
gaearon Sep 1, 2022
4b5c413
Fixed a sentence (#4950)
schlpbch Sep 1, 2022
59c68a7
[Beta] Reusing Logic with Custom Hooks (#4958)
gaearon Sep 2, 2022
da6a06e
Revert "[beta] upgrade sandpack and refactor sandpack.css (#4843)" (#…
gaearon Sep 2, 2022
56f79c4
[Beta] More info about custom hooks (#4960)
gaearon Sep 2, 2022
ce6ba06
edits
gaearon Sep 2, 2022
808d6d1
Make examples more distinct
gaearon Sep 2, 2022
b387ebb
Updated "every 100" to "every 10" to match with the code (#4961)
kaushalyap Sep 2, 2022
3c99e76
[Beta] Challenges for Reusing Logic (#4963)
gaearon Sep 2, 2022
e077d10
Bump stats
gaearon Sep 2, 2022
47483a3
[Beta] fix a broken link (#4968)
kidonng Sep 3, 2022
f2c9b60
[Beta] Link to Getting Started guide in Parcel docs (#4967)
kidonng Sep 3, 2022
2d42098
fix: reset showHint to false when click Next Challenge (#4948)
CassieRan Sep 3, 2022
7db02fc
[beta] Add escape hatches index page (#4957)
rickhanlonii Sep 3, 2022
4e8cc5f
rm unused
gaearon Sep 3, 2022
6ba9424
[Beta] Clarify grammar (#4965)
zqran Sep 3, 2022
2412995
[Beta] fix a broken link (#4971)
kidonng Sep 4, 2022
23ae76f
[Beta] add missing quotes (#4974)
zqran Sep 4, 2022
ccf8576
[Beta] Refactor Layouts (#4975)
gaearon Sep 4, 2022
42561f0
[Beta] Move MDX Preprocessing (#4976)
gaearon Sep 4, 2022
0122c9a
[Beta] Use h4 for Challenge titles (#4980)
gaearon Sep 5, 2022
6103993
[Beta] fix a broken link (#4979)
liby Sep 5, 2022
1d8f8eb
[Beta] Remount Page Content (#4981)
gaearon Sep 5, 2022
7e89958
docs: fix grammar (#4949)
dijonkitchen Sep 5, 2022
e9faee6
corrects tutorial url for the flux blog (#4934)
chandra-pratap-singh Sep 5, 2022
41cde23
[Beta] remove unnecessary parentheses and update quote content (#4983)
zqran Sep 5, 2022
102982a
[Beta] fix warning-keys (#4977)
liby Sep 5, 2022
167b030
[Beta] update `handleClick()` to `handleClick` (#4984)
zqran Sep 5, 2022
123a39a
[Beta] Remove extra 'other' (#4987)
GYNstyle Sep 5, 2022
0df0a05
[Beta] clarify grammar (#4985)
zqran Sep 5, 2022
fc4d44c
[Beta] Add missing spaces (#4986)
zqran Sep 5, 2022
6e21a2e
[Beta] Move from MDX loader to getStaticPaths (#4990)
gaearon Sep 5, 2022
bc6310f
[Beta] Don't rely on special MDX props (#4991)
gaearon Sep 5, 2022
4b99372
[Beta] Pre-process MDX during build (#4994)
gaearon Sep 6, 2022
a73274f
[Beta] Autogen API table of contents (#4995)
gaearon Sep 6, 2022
c660901
Add a comment
gaearon Sep 6, 2022
6b217bf
[Beta] Use defined variables to access elements (#4996)
liby Sep 6, 2022
f7c91eb
[Beta] Refactor Navigation (#5001)
gaearon Sep 6, 2022
f30a3bc
[Beta] update quote content (#4993)
zqran Sep 7, 2022
18a4fc0
[Beta] Misc fixes
gaearon Sep 7, 2022
9247d1a
[Beta] Make banner scrollable (#5002)
gaearon Sep 7, 2022
f1cdb19
[Beta] Panel fixes
gaearon Sep 7, 2022
9185945
[Beta] Add disk cache for MDX (#5005)
gaearon Sep 7, 2022
574c52d
Fix typo
gaearon Sep 7, 2022
949fc60
docs: fix typo (#4944)
jobayer977 Sep 7, 2022
4d32e11
[Beta] Cache everything (#5006)
gaearon Sep 7, 2022
980baff
[Beta] Don't animate links
gaearon Sep 7, 2022
89201dd
[beta] Fix some broken links, add [](TODO) (#5009)
rickhanlonii Sep 7, 2022
baaceb0
[Beta] Fix iOS click issues (#5011)
gaearon Sep 7, 2022
5d9d7ee
Revert "[Beta] Don't animate links"
gaearon Sep 7, 2022
5b2d2bd
[beta] Fix lint, remove unused vars (#5010)
rickhanlonii Sep 7, 2022
5314700
Remove outdated comment
gaearon Sep 7, 2022
00358d7
[Beta] Fix Download button (#5013)
gaearon Sep 7, 2022
9914e5e
[Beta] Fix layout jump due to sandbox tabs (#5014)
gaearon Sep 7, 2022
2fc297f
[Beta] Fix scroll margin
gaearon Sep 7, 2022
1c1ad80
[Beta] Change the position of the comma (#5007)
zqran Sep 7, 2022
dfc73fb
[beta] Add blog links (#5008)
rickhanlonii Sep 7, 2022
5f349dd
[Beta] Open external link in new tab
gaearon Sep 7, 2022
b8c4394
fix: css variables and layout of header and banner (#4966)
k4a-l Sep 7, 2022
6444cc7
Edit intro
gaearon Sep 7, 2022
71eacce
[Beta] Fix code diagram layout
gaearon Sep 7, 2022
c998108
[Beta] Fixes to blocks
gaearon Sep 7, 2022
48032f5
[Beta] Fix/explain console errors (#5015)
gaearon Sep 7, 2022
c99028d
Update robots.txt
gaearon Sep 8, 2022
9460630
fix typo
harish-sethuraman Sep 8, 2022
a54cbcb
Remove unnecessary prop
gaearon Sep 8, 2022
406fdc9
Fix DOM structure in example
gaearon Sep 8, 2022
dc92f89
Add google site verification
gaearon Sep 8, 2022
b6d597d
Prettier
gaearon Sep 8, 2022
fdc12db
[beta] Added documentation for the useMemo() API reference. (#4928)
arati-1 Sep 9, 2022
a623648
[Beta] Auto-expand on inline search (#5019)
gaearon Sep 9, 2022
6c57cef
Remove unused
gaearon Sep 9, 2022
51ad3c6
Fix nits
gaearon Sep 9, 2022
37eb774
[Beta] Wrap the period after the link inside the link (#5004)
zqran Sep 9, 2022
32de73b
[Beta] Move the colon outside the quotation marks (#5021)
zqran Sep 9, 2022
efb44de
[Beta] Update links (#5023)
zqran Sep 9, 2022
de4c6b1
[Beta] Update the link for React Router 6.4+ (#5024)
zqran Sep 9, 2022
ee96afd
[Beta] Top bar fixes (#5025)
gaearon Sep 9, 2022
7e8447a
[Beta] Update the effect with a capital letter (#5027)
zqran Sep 10, 2022
13f0e17
[Beta] Prevent text overflow (#5028)
gaearon Sep 10, 2022
8a1a82b
[Beta] Avoid grey screen on Safari iOS swipe (#5029)
gaearon Sep 10, 2022
dae817f
[Beta] Update the `useSyncExternalStore` link (#5030)
zqran Sep 10, 2022
8f8bcb9
[Beta] Fix sticky sandboxes
gaearon Sep 10, 2022
1ef61b4
[Beta] Upgrade Sandpack (#5033)
gaearon Sep 10, 2022
ba763dd
[Beta] Confirm before resetting edits
gaearon Sep 10, 2022
d8dc5c7
[Beta] Fix mobile full-bleeds
gaearon Sep 10, 2022
e45e126
[Beta] Reset nav scroll on tab switch
gaearon Sep 10, 2022
d0147dc
Fix types
gaearon Sep 10, 2022
cf4d66b
[Beta] Guard against a crash
gaearon Sep 10, 2022
a8c8a19
[Beta] Fix font jumps on iOS
gaearon Sep 10, 2022
c5b560c
[Beta] Update some document content format (#5034)
zqran Sep 10, 2022
acc8dcf
[Beta] Fix sticky sandboxes
gaearon Sep 10, 2022
25171aa
[Beta] Remove `useEvent` link (#5035)
zqran Sep 10, 2022
0f59800
Paths on windows (#5036)
yousefelgoharyx Sep 10, 2022
78e9fb8
Small fixes
gaearon Sep 10, 2022
31c8e43
[Beta] Enable Strict Mode
gaearon Sep 10, 2022
dfce03c
[Beta] Update link (#5038)
zqran Sep 10, 2022
aa12fae
[Beta] Fix navigation sticky failure (#5032)
zqran Sep 10, 2022
fbde52c
[Beta] Fix HTML layout shift (#5041)
gaearon Sep 10, 2022
c7d8589
[Beta] Move period outside quotation marks (#5047)
zqran Sep 11, 2022
01d5c97
[Beta] Add TODO for some links (#5046)
zqran Sep 12, 2022
765882e
[Beta] Fix the blank page displayed when the page navigate (#5045)
zqran Sep 12, 2022
6454bb9
[Beta] Expand useMemo documentation (#5051)
gaearon Sep 12, 2022
f99a7fd
Focus on more important point
gaearon Sep 12, 2022
5b8f219
[Beta] Split ReactDOM APIs (#5052)
gaearon Sep 13, 2022
c5b6c1f
Fix usage
gaearon Sep 13, 2022
1c1a81a
[Beta] Changed the position of the period in API Doc (#5053)
zqran Sep 13, 2022
e4aa507
Arg is optional
gaearon Sep 13, 2022
58b4d05
[Beta] Fix printing objects
gaearon Sep 14, 2022
8fc62a5
[Beta] Fix double console logs in DEV (#5060)
gaearon Sep 14, 2022
6001def
[Beta] useCallback (#5061)
gaearon Sep 14, 2022
aea76d4
tweak wording
gaearon Sep 14, 2022
8f03676
Remove extra line
gaearon Sep 14, 2022
5e63576
Simplify example
gaearon Sep 14, 2022
4aafbe1
fix links
gaearon Sep 14, 2022
3fa1950
[Beta] Update links and add fix MD syntax error in react-dom/client D…
zqran Sep 14, 2022
ead88e2
[Beta] Update links and add semicolons in API/react Doc (#5054)
zqran Sep 14, 2022
2f17b58
Move React Native EU 2022 to Past Conferences (#5058)
mauriceyap Sep 14, 2022
70df3d9
[Beta] Update links in API/react-dom Doc (#5055)
zqran Sep 14, 2022
7f9358e
[Beta] Update `Describing the UI` Doc content format (#5039)
zqran Sep 14, 2022
4417760
[beta] Remove 'each next' and 'every next' (#5063)
davidmccabe Sep 15, 2022
97865f8
[Beta] Edits for useCallback (#5064)
gaearon Sep 15, 2022
e711547
oops
gaearon Sep 15, 2022
1ae8be5
oops2
gaearon Sep 15, 2022
176b93c
[Beta] Higher-level comments in useCallback
gaearon Sep 15, 2022
8e422e0
stricter wording
gaearon Sep 15, 2022
25ced88
emoji
gaearon Sep 15, 2022
a6322a4
fix mistake
gaearon Sep 15, 2022
e14de80
align wording
gaearon Sep 15, 2022
1517828
tweak wording
gaearon Sep 15, 2022
94e99f3
add a break
gaearon Sep 15, 2022
fd46d48
[beta] Add flushSync docs (#4930)
rickhanlonii Sep 15, 2022
651d31f
[Beta] Fragment edits (#5067)
gaearon Sep 15, 2022
348d140
Fix formatting
gaearon Sep 15, 2022
ec0292b
[Beta] forwardRef API (#5068)
gaearon Sep 15, 2022
5ceec20
[Beta] Initial API doc for Suspense (#4955)
acdlite Sep 15, 2022
954ef33
[Beta] lazy API (#5069)
gaearon Sep 15, 2022
0813c24
[Beta] Ensure forwardRef API docs use pattern that ensures a display …
eps1lon Sep 15, 2022
62d1ffe
tweak
gaearon Sep 15, 2022
da47b1a
Bump numbers
gaearon Sep 15, 2022
8d63e0d
[beta] Added memo API reference page (#5059)
davidmccabe Sep 15, 2022
76d14c8
oops
gaearon Sep 15, 2022
75563fe
Fix signature
gaearon Sep 15, 2022
5bcae4f
Fixed the challenge 4 expected output when initial state of "showForm…
kaushalyap Sep 16, 2022
d83e0aa
Small typo fix with forwardRef (#5075)
srt32 Sep 17, 2022
a6c164d
Fix a mistake
gaearon Sep 17, 2022
841d3d1
[Beta]: fix typo on you-might-not-need-an-effect (#5077)
ElForastero Sep 17, 2022
a050621
reactjsday-verona-italy-2022 (#5080)
lxmarinkovic Sep 19, 2022
675e0cf
updating upcoming React conferences (#4988)
robhrt7 Sep 20, 2022
d1fee87
[Beta] fix typo (#5082)
zqran Sep 20, 2022
8f6a4bf
[Beta] Fix some dead links
gaearon Sep 21, 2022
f9d4dda
[Beta] useMemo & useCallback edits (#5087)
gaearon Sep 22, 2022
5812e54
Removed extra closing curly braces from challenge 5 (#5088)
kaushalyap Sep 22, 2022
8a9efff
[Beta] Tweak loop guidance
gaearon Sep 22, 2022
97cfcc0
[Beta] Unified api format (#5090)
zqran Sep 22, 2022
a0bc4d2
[Beta] fix(SandpackConsole): avoid unsubscribing the logs listeners (…
danilowoz Sep 22, 2022
7030761
react-global-22.v2 (#5092)
lxmarinkovic Sep 22, 2022
c5d300e
Remove unnecessary fromatting
gaearon Sep 22, 2022
17dca33
Add semi
gaearon Sep 22, 2022
23218f6
removed unused useState (#5095)
kaushalyap Sep 23, 2022
caab52a
[Beta] Fix/extracting state logic into a reducer typo (#5096)
gsong Sep 23, 2022
6329438
[Beta] build: ignore markdown files in content (#5098)
gsong Sep 23, 2022
e0720af
[beta] Update CodeStep colors (#5089)
rickhanlonii Sep 23, 2022
59f0f98
[Beta] Tweak colors
gaearon Sep 23, 2022
4ff4d8f
Tweak the experimental notice
gaearon Sep 23, 2022
0826c79
Hide package.json where it is not relevant
gaearon Sep 23, 2022
bd0f7c0
[Beta] Use React versions from package.json (#5100)
gaearon Sep 23, 2022
d56aec2
[Beta] Remove inline useEvent impl (#5101)
gaearon Sep 23, 2022
26fc12c
[Beta] Remove linter TODOs (#5102)
gaearon Sep 24, 2022
4c37115
[Beta] Code style tweaks (#5104)
gaearon Sep 24, 2022
402581e
[Beta] Bump React/Next (#5105)
gaearon Sep 24, 2022
fcd0ca3
Revert "ts"
gaearon Sep 24, 2022
477bafa
Revert "useEvent"
gaearon Sep 24, 2022
372f852
[Beta] Next patch to fail on errors (#5106)
gaearon Sep 24, 2022
b59b64f
[Beta] Upgrade to MDX 2 (#5107)
gaearon Sep 24, 2022
e166848
Added RenderATL 2023 (#5108)
ThugDebugger Sep 24, 2022
2ad2bb3
Fix typo (#5111)
thomcleary Sep 25, 2022
6b4fe35
[Beta] Fully SSR CodeBlock (#5110)
gaearon Sep 25, 2022
c8bf6f8
[Beta] Fix CSS for long highlight lines
gaearon Sep 25, 2022
4f04184
[Beta] Optimize editor re-renders (#5113)
gaearon Sep 25, 2022
e3073b0
[Beta] Fix some CSS (#5114)
gaearon Sep 25, 2022
d843937
merging all conflicts
react-translations-bot Sep 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.16.1
12.22.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
=======
1. Git
1. Node: any 12.x version starting with v12.0.0 or greater
1. Yarn: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
1. Yarn v1: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
1. A fork of the repo (for any contributions)
1. A clone of the [reactjs.org repo](https://github.com/reactjs/reactjs.org) on your local machine
>>>>>>> 6bd09fe682e18ccd7747fcd7798fa8fb4d3edc42
Expand Down
5 changes: 4 additions & 1 deletion beta/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"root": true,
"extends": "next/core-web-vitals",
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"no-unused-vars": "warn"
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn"
},
"env": {
"node": true,
Expand Down
5 changes: 5 additions & 0 deletions beta/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ yarn-error.log*

# vercel
.vercel

# external fonts
public/fonts/Optimistic_Display_W_Lt.woff2
public/fonts/Optimistic_Display_W_Md.woff2
public/fonts/Optimistic_Display_W_Bd.woff2
3 changes: 1 addition & 2 deletions beta/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
src/pages/docs/**/*.md
src/pages/blog/**/*.md
src/content/**/*.md
2 changes: 1 addition & 1 deletion beta/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The documentation is divided into sections to cater to different learning styles

**[Learn React](https://beta.reactjs.org/learn)** is designed to introduce fundamental concepts in a step-by-step way. Each individual article in Learn React builds on the knowledge from the previous ones, so make sure not to add any "cyclical dependencies" between them. It is important that the reader can start with the first article and work their way to the last Learn React article without ever having to "look ahead" for a definition. This explains some ordering choices (e.g. that state is explained before events, or that "thinking in React" doesn't use refs). Learn React also serves as a reference manual for React concepts, so it is important to be very strict about their definitions and relationships between them.

**[API Reference](https://reactjs.org/apis)** is organized by APIs rather than concepts. It is intended to be exhaustive. Any corner cases or recommendations that were skipped for brevity in Learn React should be mentioned in the reference documentation for the corresponding APIs.
**[API Reference](https://reactjs.org/apis/react)** is organized by APIs rather than concepts. It is intended to be exhaustive. Any corner cases or recommendations that were skipped for brevity in Learn React should be mentioned in the reference documentation for the corresponding APIs.

**Try to follow your own instructions.**

Expand Down
2 changes: 1 addition & 1 deletion beta/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# reactjs.org

This repo contains the source code and documentation powering [reactjs.org](https://reactjs.org/).
This repo contains the source code and documentation powering [beta.reactjs.org](https://beta.reactjs.org/).


## Getting started
Expand Down
4,950 changes: 0 additions & 4,950 deletions beta/illustrations/import-export.ai

This file was deleted.

1,564 changes: 0 additions & 1,564 deletions beta/illustrations/jsx.ai

This file was deleted.

64 changes: 38 additions & 26 deletions beta/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,33 @@
*/

const path = require('path');
const {remarkPlugins} = require('./plugins/markdownToHtml');
const redirects = require('./src/redirects.json');

module.exports = {
/**
* @type {import('next').NextConfig}
**/
const nextConfig = {
pageExtensions: ['jsx', 'js', 'ts', 'tsx', 'mdx', 'md'],
reactStrictMode: true,
experimental: {
plugins: true,
// TODO: this doesn't work because https://github.com/vercel/next.js/issues/30714
concurrentFeatures: false,
scrollRestoration: true,
legacyBrowsers: false,
browsersListForSwc: true,
},
async redirects() {
return redirects.redirects;
},
rewrites() {
return [
{
source: '/feed.xml',
destination: '/_next/static/feed.xml',
},
];
},
// TODO: this causes extra router.replace() on every page.
// Let's disable until we figure out what's going on.
// rewrites() {
// return [
// {
// source: '/feed.xml',
// destination: '/_next/static/feed.xml',
// },
// ];
// },
webpack: (config, {dev, isServer, ...options}) => {
if (process.env.ANALYZE) {
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
Expand All @@ -38,22 +43,29 @@ module.exports = {
);
}

// Add our custom markdown loader in order to support frontmatter
// and layout
config.module.rules.push({
test: /.mdx?$/, // load both .md and .mdx files
use: [
options.defaultLoaders.babel,
{
loader: '@mdx-js/loader',
options: {
remarkPlugins,
},
// Don't bundle the shim unnecessarily.
config.resolve.alias['use-sync-external-store/shim'] = 'react';

const {IgnorePlugin} = require('webpack');
config.plugins.push(
new IgnorePlugin({
checkResource(resource, context) {
if (
/\/eslint\/lib\/rules$/.test(context) &&
/\.\/[\w-]+(\.js)?$/.test(resource)
) {
// Skips imports of built-in rules that ESLint
// tries to carry into the bundle by default.
// We only want the engine and the React rules.
return true;
}
return false;
},
path.join(__dirname, './plugins/md-layout-loader'),
],
});
})
);

return config;
},
};

module.exports = nextConfig;
39 changes: 24 additions & 15 deletions beta/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"license": "CC",
"scripts": {
"analyze": "ANALYZE=true next build",
"dev": "next",
"build": "next build && node ./scripts/generateRSS.js && node ./scripts/generateRedirects.js",
"dev": "next-remote-watch ./src/content",
"build": "next build && node ./scripts/generateRSS.js && node ./scripts/generateRedirects.js && node ./scripts/downloadFonts.js",
"lint": "next lint",
"lint:fix": "next lint --fix",
"format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"",
Expand All @@ -22,36 +22,44 @@
"check-all": "npm-run-all prettier lint:fix tsc"
},
"dependencies": {
"@codesandbox/sandpack-react": "v0.14.3-experimental.1",
"@codesandbox/sandpack-react": "1.7.2",
"@docsearch/css": "3.0.0-alpha.41",
"@docsearch/react": "3.0.0-alpha.41",
"@headlessui/react": "^1.3.0",
"@mdx-js/react": "^1.6.16",
"@headlessui/react": "^1.7.0",
"body-scroll-lock": "^3.1.3",
"classnames": "^2.2.6",
"date-fns": "^2.16.1",
"debounce": "^1.2.1",
"ga-lite": "^2.1.4",
"github-slugger": "^1.3.0",
<<<<<<< HEAD
"next": "^12.1.0",
=======
"next": "12.3.2-canary.7",
"next-remote-watch": "^1.0.0",
>>>>>>> e3073b03a5b9eff4ef12998841b9e56120f37e26
"parse-numeric-range": "^1.2.0",
"react": "experimental",
"react-collapsed": "3.1.0",
"react-dom": "experimental",
"scroll-into-view-if-needed": "^2.2.25"
"react": "0.0.0-experimental-cb5084d1c-20220924",
"react-collapsed": "npm:@gaearon/react-collapsed@3.1.0-forked.1",
"react-dom": "0.0.0-experimental-cb5084d1c-20220924",
"remark-gfm": "^3.0.1"
},
"devDependencies": {
"@mdx-js/loader": "^1.6.16",
"@babel/core": "^7.12.9",
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@mdx-js/mdx": "^2.1.3",
"@types/body-scroll-lock": "^2.6.1",
"@types/classnames": "^2.2.10",
"@types/debounce": "^1.2.1",
"@types/github-slugger": "^1.3.0",
"@types/mdx-js__react": "^1.5.2",
"@types/node": "^14.6.4",
"@types/parse-numeric-range": "^0.0.1",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@typescript-eslint/eslint-plugin": "2.x",
"@typescript-eslint/parser": "2.x",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.5",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"asyncro": "^3.0.0",
"autoprefixer": "^10.4.2",
"babel-eslint": "10.x",
Expand All @@ -62,14 +70,15 @@
"eslint-plugin-import": "2.x",
"eslint-plugin-jsx-a11y": "6.x",
"eslint-plugin-react": "7.x",
"eslint-plugin-react-hooks": "2.x",
"eslint-plugin-react-hooks": "experimental",
"fs-extra": "^9.0.1",
"globby": "^11.0.1",
"gray-matter": "^4.0.2",
"husky": "^7.0.4",
"is-ci": "^3.0.1",
"lint-staged": ">=10",
"mdast-util-to-string": "^1.1.0",
"metro-cache": "0.72.2",
"npm-run-all": "^4.1.5",
"patch-package": "^6.2.2",
"postcss": "^8.4.5",
Expand Down
22 changes: 22 additions & 0 deletions beta/patches/next+12.3.2-canary.7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/node_modules/next/dist/server/render.js b/node_modules/next/dist/server/render.js
index 3a141de..72a8749 100644
--- a/node_modules/next/dist/server/render.js
+++ b/node_modules/next/dist/server/render.js
@@ -752,9 +752,14 @@ async function renderToHTML(req, res, pathname, query, renderOpts) {
// Enabling react concurrent rendering mode: __NEXT_REACT_ROOT = true
const renderShell = async (EnhancedApp, EnhancedComponent)=>{
const content = renderContent(EnhancedApp, EnhancedComponent);
- return await (0, _nodeWebStreamsHelper).renderToInitialStream({
- ReactDOMServer,
- element: content
+ return new Promise((resolve, reject) => {
+ (0, _nodeWebStreamsHelper).renderToInitialStream({
+ ReactDOMServer,
+ element: content,
+ streamOptions: {
+ onError: reject
+ }
+ }).then(resolve, reject);
});
};
const createBodyResult = (initialStream, suffix)=>{
16 changes: 16 additions & 0 deletions beta/patches/next-remote-watch+1.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/node_modules/next-remote-watch/bin/next-remote-watch b/node_modules/next-remote-watch/bin/next-remote-watch
index c055b66..a2f749c 100755
--- a/node_modules/next-remote-watch/bin/next-remote-watch
+++ b/node_modules/next-remote-watch/bin/next-remote-watch
@@ -66,7 +66,10 @@ app.prepare().then(() => {
}
}

- app.server.hotReloader.send('reloadPage')
+ app.server.hotReloader.send({
+ event: 'serverOnlyChanges',
+ pages: ['/[[...markdownPath]]']
+ });
}
)
}
38 changes: 0 additions & 38 deletions beta/plugins/md-layout-loader.js

This file was deleted.

8 changes: 0 additions & 8 deletions beta/plugins/remark-header-custom-ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ module.exports = ({
if (tail && tail.type === 'emphasis') {
// Use custom ID instead.
id = toString(tail);
// Until we're on MDX 2, we need to "cut off" the comment syntax.
tail = children[children.length - 3];
if (tail && tail.type === 'text' && tail.value.endsWith('{/')) {
// Remove the emphasis and trailing `/}`
children.splice(children.length - 2, 2);
// Remove the `{/`
tail.value = tail.value.replace(/[ \t]*\{\/$/, '');
}
}
}

Expand Down
13 changes: 0 additions & 13 deletions beta/plugins/sandbox-templates/cra/package.json

This file was deleted.

26 changes: 0 additions & 26 deletions beta/plugins/sandbox-templates/cra/public/index.html

This file was deleted.

5 changes: 0 additions & 5 deletions beta/plugins/sandbox-templates/cra/src/App.js

This file was deleted.

13 changes: 0 additions & 13 deletions beta/plugins/sandbox-templates/cra/src/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions beta/plugins/sandbox-templates/cra/src/styles.css

This file was deleted.

Loading