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

Sync with reactjs.org @ e50e5634 #213

Open
wants to merge 496 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
496 commits
Select commit Hold shift + click to select a range
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
2a083f9
[Beta] Remove unused prop from context examples (#5117)
thomcleary Sep 26, 2022
1a69206
fix typo in useMemo() documentation [BETA] (#5119)
skromez Sep 26, 2022
ab8c1a4
Fix HTML and CSS highlighting
gaearon Sep 26, 2022
ed37a7d
[Beta] Disable runtime CSS-in-JS (#5122)
gaearon Sep 27, 2022
931fd96
[Beta] Exclude Markdown parser (#5123)
gaearon Sep 27, 2022
2805880
Remove bold from codestep
gaearon Sep 27, 2022
ea5810b
tweak landing copy
gaearon Sep 27, 2022
54e6276
[Beta] Fix header IDs (#5128)
gaearon Sep 28, 2022
8ae813f
[Beta] useEffect API (#5103)
gaearon Sep 29, 2022
edd2f4e
typo
gaearon Sep 29, 2022
f75d0e2
[Beta] Don't nest components (#5132)
gaearon Sep 29, 2022
004287e
grammar
gaearon Sep 29, 2022
9d7feb9
Tweak
gaearon Sep 29, 2022
d7761ed
Bump API to 70%
gaearon Sep 29, 2022
b6983c3
Fix lint
gaearon Sep 29, 2022
e30bfe8
[Beta] Add a survey (#5133)
gaearon Sep 29, 2022
fd81031
Point old site banner at Beta docs (#5134)
gaearon Sep 29, 2022
2e57382
Bolder CTA
gaearon Sep 29, 2022
3031668
Fix link
gaearon Sep 29, 2022
fbd8c82
Fix React Router 6.4+ link (#5135)
esvyridov Sep 29, 2022
35627be
Update my twitter name (#5141)
poteto Oct 1, 2022
664dd57
[Beta] Fix typos in 'Lifecycle of Reactive Effects' challenge descrip…
thomcleary Oct 2, 2022
45e3c1b
[Beta] Fixes for install instructions
gaearon Oct 3, 2022
3a9b0c8
[beta] fix: cleanup resize listener (#4847)
shanpriyan Oct 4, 2022
7de3a0b
[Beta] Added documentation for React.createFactory (#5120)
arati-1 Oct 4, 2022
1205097
[Beta] Add Alternatives to createFactory API (#5149)
gaearon Oct 4, 2022
88a2e53
fix typo
gaearon Oct 4, 2022
d9915ca
fix
gaearon Oct 4, 2022
8379534
[Beta] useId API (#5150)
gaearon Oct 4, 2022
b99298a
oops
gaearon Oct 4, 2022
7b0e3bd
[beta] Sandpack: fix package.json dependencies & remove cm-markdown d…
danilowoz Oct 4, 2022
440741d
[Beta] isValidElement API (#5152)
gaearon Oct 4, 2022
a224f9d
[Beta] Accurate MDX line numbers (#5153)
gaearon Oct 4, 2022
c741dd4
Fix
gaearon Oct 4, 2022
f24bc19
[Beta] createElement API (#5154)
gaearon Oct 5, 2022
6dcdaac
tweaks
gaearon Oct 5, 2022
fa30ccd
fix
gaearon Oct 5, 2022
9af5d8d
[Beta] useImperativeHandle API (#5157)
gaearon Oct 5, 2022
e6bc8db
[Beta] Remove some polyfills (#5158)
gaearon Oct 6, 2022
f3420fd
[beta] Sandpack: provide bare components and move styles (#5124)
danilowoz Oct 6, 2022
25d4589
[Beta] Prefetch CodeBlock (#5159)
gaearon Oct 6, 2022
3ac36ff
[Beta] Fix code styles (#5162)
gaearon Oct 7, 2022
06ab241
[Beta] Children API (#5163)
gaearon Oct 7, 2022
fba9eab
remove unused imports
gaearon Oct 7, 2022
9ccea25
[Beta] fix typo in 'Removing Effect Dependencies' (#5167)
thomcleary Oct 8, 2022
d07016a
[Beta] Rename Gotcha component to Pitfall (#5172)
alvarlagerlof Oct 9, 2022
8fe817e
[Beta] fix: gutter overlap with sandpack code on mobile (#5170)
shanpriyan Oct 16, 2022
641f20a
Scroll behavior (#5182)
AdnanOlarmmi Oct 17, 2022
ec6c673
fix: broken link for render-and-commt (#5184)
jukrb0x Oct 18, 2022
c69ff23
Revert "Scroll behavior (#5182)" (#5186)
gaearon Oct 18, 2022
30cafef
Fix 'queueing a series of state changes->updates' typo in beta docs (…
melissapthai Oct 18, 2022
415751c
[Beta] Remove superfluous IllustrationBlock title prop
gaearon Oct 18, 2022
0867cc1
[Beta] Show illustration credit on hover/tap (#5188)
gaearon Oct 18, 2022
e698f2f
[beta] broken links in updating-objects-in-state (#5190)
jukrb0x Oct 19, 2022
7e98d1f
fix(beta): removes debug console.log (#5189)
danecando Oct 19, 2022
d0a809a
[Beta] Note on Children vs children
gaearon Oct 19, 2022
36656af
[beta] Fix typo on apis/react-dom/render (#5191)
eps1lon Oct 19, 2022
d483aeb
[Beta] cloneElement API (#5194)
gaearon Oct 19, 2022
8a22e6e
[Beta] Sandpack bundler improvements (#5164)
danilowoz Oct 25, 2022
5d1cac5
Update 2022-03-08-react-18-upgrade-guide.md (#5208)
claidler Oct 26, 2022
8ab1291
[Beta] Sandpack: fix accessibility issue on Codeeditor (#5216)
danilowoz Oct 28, 2022
f4d42d6
[Beta] fix typo in apis/react/cloneElement (#5201)
SukkaW Oct 29, 2022
e21b37c
[Beta] Add missing dependencies (#5220)
holazz Oct 29, 2022
4df7cce
Fix broken links (#5225)
EzraBerendsen Oct 31, 2022
751a13f
Add github repo link in the footer (#5204)
arafatiqbal Oct 31, 2022
dee6aed
[Beta] fix useMemo API doc error. (#5224)
webpig Nov 1, 2022
fc7bd4d
Fix typo (#5222)
npentrel Nov 1, 2022
822330c
fix #5212 (#5213)
xnivaxhzne Nov 3, 2022
ec368f4
Update SandpackRoot.tsx (#5247)
danilowoz Nov 7, 2022
3915ef3
Add App.js Conf 2023 to the conferences page (#5248)
Nov 7, 2022
27152d3
chore: move conf (#5249)
harish-sethuraman Nov 7, 2022
dc20245
Fix createContext href in React APIs (#5245)
AlekseiPopovDev Nov 8, 2022
40251d2
fix #5210 (#5211)
xnivaxhzne Nov 9, 2022
06ae637
Change footer link to React repo
gaearon Nov 11, 2022
3bba430
[Beta] Add missing styles to search box in modal (#5234)
zqianem Nov 13, 2022
bc39165
docs: Fix a broken link, add a missing quote (#5260)
aleksandr-kiliushin Nov 14, 2022
29b163a
Add "Meta Front-End Developer Professional Certificate" to Paid Cours…
hstarikov-coursera Nov 14, 2022
dd52cdd
[Beta] Remove remaining use of embed: scheme (#5265)
gaearon Nov 14, 2022
9d5d1e2
Update with correct index (#5266)
arafatiqbal Nov 15, 2022
eceab8f
[Beta] Fix toc overflow (#5267)
gaearon Nov 15, 2022
c581381
[Beta] React.Component API (#5196)
gaearon Nov 15, 2022
15e5bac
[Beta] Update text with cloneElement (#5268)
dhavall08 Nov 15, 2022
d2bf257
Clarify example
gaearon Nov 16, 2022
b44e18e
Add note about getSnapshotBeforeUpdate
gaearon Nov 16, 2022
081b568
[Beta] createRef API (#5270)
gaearon Nov 16, 2022
501de4a
[Beta] PureComponent API (#5271)
gaearon Nov 16, 2022
5e5eb21
[Beta] useDebugValue API (#5272)
gaearon Nov 16, 2022
543db5b
Fix title
gaearon Nov 16, 2022
28f30b4
Fix typo
gaearon Nov 16, 2022
1503e6b
[Beta] Fix Defining frameId in useAnimationLoop (#5277)
madany01 Nov 18, 2022
e50e563
Added undefined to in the list of possible return types of render fun…
kunxl-gg Nov 18, 2022
4f22a64
merging all conflicts
react-translations-bot Nov 21, 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
1 change: 1 addition & 0 deletions beta/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SANDPACK_BARE_COMPONENTS=true
3 changes: 2 additions & 1 deletion beta/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
NEXT_PUBLIC_GA_TRACKING_ID = 'UA-41298772-4'
NEXT_PUBLIC_GA_TRACKING_ID = 'UA-41298772-4'
SANDPACK_BARE_COMPONENTS=true
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.

80 changes: 53 additions & 27 deletions beta/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,36 @@
* Copyright (c) Facebook, Inc. and its affiliates.
*/

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,
},
env: {
SANDPACK_BARE_COMPONENTS: process.env.SANDPACK_BARE_COMPONENTS,
},
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 +45,41 @@ 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, NormalModuleReplacementPlugin} = require('webpack');
config.plugins.push(
new NormalModuleReplacementPlugin(
/^@stitches\/core$/,
require.resolve('./src/utils/emptyShim.js')
),
new NormalModuleReplacementPlugin(
/^raf$/,
require.resolve('./src/utils/rafShim.js')
),
new NormalModuleReplacementPlugin(
/^process$/,
require.resolve('./src/utils/processShim.js')
),
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;
40 changes: 25 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,45 @@
"check-all": "npm-run-all prettier lint:fix tsc"
},
"dependencies": {
"@codesandbox/sandpack-react": "v0.14.3-experimental.1",
"@codesandbox/sandpack-react": "1.15.5",
"@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",
>>>>>>> e50e5634cca3c7cdb92c28666220fe3b61e9aa30
"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/[email protected]",
"react-dom": "0.0.0-experimental-cb5084d1c-20220924",
"remark-frontmatter": "^4.0.1",
"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 +71,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.

Loading