Commit Graph

565 Commits

Author SHA1 Message Date
Dan Abramov
543db5ba6d Fix title 2022-11-16 22:31:26 +00:00
dan
5e5eb21c02 [Beta] useDebugValue API (#5272) 2022-11-16 22:29:02 +00:00
dan
501de4a49d [Beta] PureComponent API (#5271) 2022-11-16 21:35:45 +00:00
dan
081b56896a [Beta] createRef API (#5270) 2022-11-16 17:39:03 +00:00
Dan Abramov
b44e18e015 Add note about getSnapshotBeforeUpdate 2022-11-16 09:27:02 +00:00
Dan Abramov
d2bf257e26 Clarify example 2022-11-16 09:21:42 +00:00
Dhaval Laiya
15e5baca67 [Beta] Update text with cloneElement (#5268) 2022-11-16 01:36:42 +05:30
dan
c58138184d [Beta] React.Component API (#5196)
* [Beta] React.Component API

* tweaks

* more compact

* oops

* wip

* Tweaks

* cDM

* cDU

* cWU

* wip

* U_cWM

* cWRP

* U_cWU

* useLayoutEffect ref

* tweaks

* forceUpdate

* gSBU

* render

* tweak

* setState

* sCU

* gDSFP

* gDSFE

* tweak
2022-11-15 18:51:38 +00:00
dan
eceab8fec0 [Beta] Fix toc overflow (#5267) 2022-11-15 16:59:15 +00:00
Arafat Iqbal
9d5d1e29e0 Update with correct index (#5266) 2022-11-15 03:20:27 +00:00
dan
dd52cdde73 [Beta] Remove remaining use of embed: scheme (#5265) 2022-11-14 23:55:51 +00:00
Aleksandr Kiliushin
bc39165e4e docs: Fix a broken link, add a missing quote (#5260) 2022-11-14 12:53:32 +01:00
Em Zhan
3bba430b59 [Beta] Add missing styles to search box in modal (#5234) 2022-11-13 17:27:33 +05:30
dan
06ae63787d Change footer link to React repo 2022-11-11 18:09:43 +00:00
kavinkuma6
40251d2e61 fix #5210 (#5211)
Closes https://github.com/reactjs/reactjs.org/issues/5210
2022-11-09 20:24:53 +01:00
Alexey
dc20245b99 Fix createContext href in React APIs (#5245) 2022-11-08 11:20:07 +05:30
Danilo Woznica
ec368f4871 Update SandpackRoot.tsx (#5247) 2022-11-07 15:37:20 +05:30
kavinkuma6
822330c3df fix #5212 (#5213)
* fix #5212

* fix #5212 - conceptual error in useCallback reg memoization

* remove unnecessary new line
2022-11-03 12:33:25 +05:30
Naomi Pentrel
fc7bd4d5e6 Fix typo (#5222) 2022-11-01 20:28:19 +01:00
潇潇雨歇
dee6aed447 [Beta] fix useMemo API doc error. (#5224) 2022-11-01 15:00:25 +01:00
Arafat Iqbal
751a13f5fc Add github repo link in the footer (#5204) 2022-10-31 10:12:00 +01:00
Ezra Berendsen
4df7cceef9 Fix broken links (#5225) 2022-10-31 14:39:15 +05:30
zz
e21b37c8cc [Beta] Add missing dependencies (#5220) 2022-10-29 11:01:02 +02:00
Sukka
f4d42d6cfd [Beta] fix typo in apis/react/cloneElement (#5201) 2022-10-29 10:31:04 +02:00
Danilo Woznica
8ab1291909 [Beta] Sandpack: fix accessibility issue on Codeeditor (#5216)
* Update package.json and yarn.lock

* Update package.json and yarn.lock

* Update package.json and yarn.lock

* Update package.json and yarn.lock
2022-10-28 09:43:28 -10:00
Danilo Woznica
8a22e6e6ca [Beta] Sandpack bundler improvements (#5164)
* cache babel assets

* Update SandpackRoot.tsx

* Update NavigationBar.tsx

* Update SandpackRoot.tsx

* Update 7 files

* Update 6 files

* Update 6 files

* Update LoadingOverlay.tsx

* Update Preview.tsx

* Update LoadingOverlay.tsx

* Update 4 files

* Update beta/src/components/MDX/Sandpack/LoadingOverlay.tsx

Co-authored-by: Shanmughapriyan S <priyanshan03@gmail.com>

* Update sandpack.css

* Update Preview.tsx and SandpackRoot.tsx

* Update 3 files

* Update ErrorMessage.tsx and Preview.tsx

* Update Preview.tsx

* Update SandpackRoot.tsx

* Update Preview.tsx

Co-authored-by: Shanmughapriyan S <priyanshan03@gmail.com>
2022-10-25 01:57:41 -07:00
dan
d483aebbac [Beta] cloneElement API (#5194) 2022-10-19 20:13:48 +01:00
Sebastian Silbermann
36656af692 [beta] Fix typo on apis/react-dom/render (#5191)
* [beta] Fix typo on apis/react-dom/render

* Update render.md

Co-authored-by: dan <dan.abramov@gmail.com>
2022-10-19 17:43:53 +01:00
Dan Abramov
d0a809a44c [Beta] Note on Children vs children 2022-10-19 15:59:12 +01:00
Dane Grant
7e98d1f6f9 fix(beta): removes debug console.log (#5189) 2022-10-19 15:20:45 +01:00
Jabriel
e698f2f30c [beta] broken links in updating-objects-in-state (#5190)
* fix: broken link for render-and-commt

* fix(beta): broken link to `/apis/react/memo`
2022-10-19 15:19:43 +01:00
dan
0867cc17d3 [Beta] Show illustration credit on hover/tap (#5188)
* [beta] Show `AuthorCredit` on hover and focus

* Move attribution to top

* Styling and stuff

Co-authored-by: Dan Lebowitz <dan.lebo@me.com>

Co-authored-by: Mayank <9084735+mayank99@users.noreply.github.com>
Co-authored-by: Dan Lebowitz <dan.lebo@me.com>
2022-10-18 19:18:05 +01:00
Dan Abramov
415751c190 [Beta] Remove superfluous IllustrationBlock title prop 2022-10-18 18:58:40 +01:00
Melissa Thai
30cafefc9e Fix 'queueing a series of state changes->updates' typo in beta docs (#5187) 2022-10-18 18:12:54 +01:00
dan
c69ff23653 Revert "Scroll behavior (#5182)" (#5186)
This reverts commit 641f20a9b5.
2022-10-18 16:31:59 +01:00
Jabriel
ec6c6739f0 fix: broken link for render-and-commt (#5184) 2022-10-18 14:44:37 +05:30
Adnan Is-haq Olamilekan
641f20a9b5 Scroll behavior (#5182)
* Make HTML scroll behavior smooth.

To make the site more professional, I add smoothness to the HTML scroll behavior

* Make HTML scroll behavior smooth.

To make the site more professional, I add smoothness to the HTML scroll behavior

* Make HTML scroll behavior smooth

To make the site more professional, I add smoothness to the HTML scroll behavior

* Make HTML scroll behavior smooth

To make the site more professional, I add smoothness to the HTML scroll behavior

* Make HTML scroll behavior smooth

To make the site more professional, I add smoothness to the HTML scroll behavior

* Update beta/src/styles/algolia.css

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

* Update src/css/algolia.css

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

* Update beta/src/styles/sandpack.css

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

Co-authored-by: Strek <ssharishkumar@gmail.com>
2022-10-17 22:32:56 +05:30
Shanmughapriyan S
8fe817e61e [Beta] fix: gutter overlap with sandpack code on mobile (#5170)
* fix: gutter overlap

* chore: move horizontal scrollbar to code-content
2022-10-16 22:26:39 +01:00
Alvar Lagerlöf
d07016aea8 [Beta] Rename Gotcha component to Pitfall (#5172)
The visible name on the site was already Pitfall since a while back, this makes the components use that name too.
2022-10-09 23:56:33 +01:00
Thomas Cleary
9ccea25219 [Beta] fix typo in 'Removing Effect Dependencies' (#5167) 2022-10-08 10:52:00 +02:00
dan
fba9eabb9e remove unused imports 2022-10-07 23:54:48 +01:00
dan
06ab241633 [Beta] Children API (#5163)
* [Beta] Children API

* tweak

* wip
2022-10-07 19:46:50 +01:00
dan
3ac36ffd9c [Beta] Fix code styles (#5162) 2022-10-07 03:36:15 +01:00
dan
25d45897c0 [Beta] Prefetch CodeBlock (#5159) 2022-10-07 00:05:51 +01:00
Danilo Woznica
f3420fdc56 [beta] Sandpack: provide bare components and move styles (#5124)
* Update 6 files

* Update _document.tsx

* Update _document.tsx

* Update _document.tsx

* Update .env.production

* Update package.json and yarn.lock

* editor style

* file tab

* loading

* loading

* tweaks

* tweak

* bump sandpack

* remove test page

* Remove stitches from the bundle

* apply ios fix only for playground

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-10-06 21:18:23 +01:00
dan
e6bc8db08d [Beta] Remove some polyfills (#5158) 2022-10-06 21:07:33 +01:00
dan
9af5d8df69 [Beta] useImperativeHandle API (#5157) 2022-10-05 18:27:58 +01:00
Dan Abramov
fa30ccdd62 fix 2022-10-05 02:03:19 +01:00
Dan Abramov
6dcdaac51f tweaks 2022-10-05 01:52:56 +01:00
dan
f24bc196f4 [Beta] createElement API (#5154) 2022-10-05 01:38:07 +01:00