Commit Graph

235 Commits

Author SHA1 Message Date
Kafuu-Chinocya
3c805e7da3 fix(reference): missing parameter in hydrateRoot (#7724) 2025-04-15 09:59:36 +02:00
Jakub Beneš
e148ffec82 Add note about root.render microtask scheduling (#7717)
Co-authored-by: Sebastian "Sebbie" Silbermann <sebastian.silbermann@vercel.com>
2025-04-08 13:44:12 +02:00
Yadiel Vélez
6ead1fae68 Add note about useId being allowed in non-async Server Components (#7715) 2025-04-07 12:35:20 +02:00
Ricky
3dfa3bdd23 Fix heading links in StrictMode (#7713) 2025-04-02 11:36:56 -04:00
Mysh!
b5c16dcffa fix(reference): declare subscribe before passing it to the hook (#7711) 2025-04-02 11:35:25 -04:00
Sebastian "Sebbie" Silbermann
b77c05d807 Misc captureOwnerStack cleanup after stable release (#7710)
1. Stop using `canary` for `captureOwnerStack` sandboxes
1. Remove remaining Canary badges from `captureOwnerStack` mentions
2025-04-02 10:52:21 +02:00
Ricky
38ee8d2a4f Add note about StrictMode not as the root component (#7702) 2025-03-31 12:58:06 -04:00
Jack Pope
9f87530c0e Remove captureOwnerStack canary banner (#7701)
* Remove captureOwnerStack canary banner

* Update nav and site config
2025-03-31 12:36:35 -04:00
Alberto Velandia
6788f6bade Fixes typo (#7688) 2025-03-24 18:47:47 -04:00
Sam Ko
4a4e579fdb docs(hydrateRoot): update suppressHydrationWarning behavior (#7651) 2025-02-26 21:08:17 +01:00
Asha Armstrong-Zaid
fc29603434 Fix 'optimistically updating form data' demo bug (#7646)
This is the exact same fix as #6422 as the example is duplicated between the useOptimistic and <form> pages.
2025-02-22 17:30:13 +00:00
Sam Ko
dcaf07efd1 chore(docs): add mention that React will drop all extraneous props for <style> when using the precedence property (#7643) 2025-02-21 17:03:22 -08:00
Joonyoung Hong
a42121e479 fix: correct typo in hydrateRoot.md (#7637) 2025-02-20 10:59:42 -08:00
Pier-Luc Caron St-Pierre
55d1f8fab6 Update input.md (#7418)
* Update input.md

Fix typo about input

* Update src/content/reference/react-dom/components/input.md

---------

Co-authored-by: Ricky <rickhanlonii@gmail.com>
2025-02-18 00:50:24 -05:00
Alex Safian
126d8c9aa5 Update nextjs link with the latest URL (#7389)
* Update nextjs link with the latest URL

The previous link redirected users to a 404 page.

* Update src/content/reference/react/useDeferredValue.md

---------

Co-authored-by: Ricky <rickhanlonii@gmail.com>
2025-02-18 00:43:08 -05:00
Hyun Don Moon
ff12973def Fix error in second code snippet under Server Functions with Actions (#7414) 2025-02-18 00:35:39 -05:00
Tim Parsons
32cb13a959 updated incorrect logic (#7482) 2025-02-17 23:57:11 -05:00
Ricky
aaf392ae24 Fix more broken links (#7628) 2025-02-17 23:39:05 -05:00
Sebastian "Sebbie" Silbermann
dfc4448e0d Reference docs for captureOwnerStack (#7427)
Co-authored-by: Ricky <rickhanlonii@fb.com>
2025-02-13 21:01:52 +01:00
Renato Dell'Osso
305db5f269 Capitalized Suspense in a few files (#7449) 2025-01-27 12:34:36 -05:00
Ryan Christian
9001bc6f23 docs: Correct var reference in prerender example (#7434) 2025-01-27 12:34:16 -05:00
Sruthi Krishnakumar
4d44167a43 import missing useState in the useEffect markdown file (#7457) 2025-01-27 11:25:15 -05:00
Sophie Alpert
7cdbed03a6 Mention startTransition in useActionState docs (#7448) 2025-01-24 09:25:14 -08:00
slavgetov
b03017aaee fix typo (#7440) 2025-01-21 21:39:10 +05:30
Sebastian "Sebbie" Silbermann
ee8a829f99 Disallow /index.html in sandboxes (#7430) 2025-01-14 20:29:35 +01:00
Azzyxec
9c4bc2881b Update server-functions.md (#7396)
In the section "Importing Server Functions from Client Components"

updated "createNoteAction" to "createNote"  to match the function name in the example
2025-01-09 12:05:12 +05:30
Matt Carroll
6ae99dddc3 Remove forwardRef references from useRef and Manipulating the DOM with Refs pages (#7364) 2024-12-20 10:45:30 -08:00
Batuhan Tomo
1517494944 refactor: remove unused useTransition import in App.js and update documentation for clarity (#7377) 2024-12-19 17:43:41 +00:00
Sebastian "Sebbie" Silbermann
8e41e32c50 Inline stylesheets are not Suspensey yet (#7378) 2024-12-19 08:25:32 -08:00
Sebastian Ong
c37fdd38ff Remove forwardref from useImperativeHandle docs (#7360)
* fix: remove forwardref from useImperativeHandle docs

* Make changes more focused

* Update useImperativeHandle.md

---------

Co-authored-by: dan <dan.abramov@gmail.com>
2024-12-16 16:25:07 +00:00
Soichiro Miki
8ac5531913 Rename remaining "Server Actions" (#7352) 2024-12-16 16:11:21 +00:00
Soichiro Miki
204b3f1975 Remove canary flag from useFormStatus (#7349) 2024-12-16 16:11:06 +00:00
Ethan Shea
93a03f121c docs: Fix broken link to next.js Suspense docs (#7318) 2024-12-16 16:10:53 +00:00
JZZICK
0f8bd80112 Code example mistake in useMemo page (#7335) 2024-12-16 16:08:28 +00:00
Jeremy Deutsch
807e7fa94f Mention that uncontrolled form elements are reset by form actions (#7340) 2024-12-16 16:07:36 +00:00
Steve Xu
a4b6074cd6 fix: page does not exist (#7348) 2024-12-16 16:06:17 +00:00
Andrew Patton
4b5ce9150c Add missing react-error-boundary dependency (#7353)
the “Dealing with rejected Promises” codesandbox example depends on react-error-boundary, but doesn’t specify it as a dependency, so the code example is broken
2024-12-16 16:05:36 +00:00
Soichiro Miki
d3cde8f03b Fix "won't break between majors" (#7357) 2024-12-16 16:04:07 +00:00
Jealh
4349dd5dc0 fix: anchor (#7343) 2024-12-16 16:03:29 +00:00
Amin Zaherdannak
d4d16832ea chore: fix a typo in startTransition docs (#7361) 2024-12-16 16:02:53 +00:00
Amin Zaherdannak
31456db6c9 chore: correct typo in useTransition docs (#7366) 2024-12-16 16:02:37 +00:00
huiliangShen
d3bd0f9d8a Update act.md (#7363)
docs: fixed typo act md counter fn grammar error
2024-12-16 16:02:18 +00:00
Coal
c92bad2fa2 chore: several major typo fixes (#7362)
Co-authored-by: Josue Navas <josue.navas@eagleview.com>
2024-12-16 16:01:48 +00:00
Soichiro Miki
07eca83777 Fix intro of prerenderToNodeStream (#7356) 2024-12-16 15:59:51 +00:00
Eric Cote
bc93f0578d Fix stylesheet precedence example (#7235)
* Fix stylesheet precedence example

* Update link.md

---------

Co-authored-by: dan <dan.abramov@gmail.com>
2024-12-16 15:58:20 +00:00
Ahmet Özenir
51864f6f58 (fix): mismatch href bug (#7368)
"use-server" docs Server Functions href fixed.
2024-12-16 14:27:33 +00:00
Jimmy Callin
9fb491d71f Fix troubleshooting links in startTransition reference (#7367)
* fix links

* Update startTransition.md

* Update startTransition.md

* Update startTransition.md

* Update startTransition.md
2024-12-16 14:27:14 +00:00
Mayank
ebedc89daf fix links to prerender docs (#7323) 2024-12-05 15:43:29 -05:00
Ricky
4673a050e1 Merge v19 docs to main (#7322)
* Convert "Canary" callouts to "React 19 beta" (#6811)

* Convert "Canary" callouts to "React 19 beta"

* Starting in

* Bump version string

* Bump deploy

* Bump deploy

* Bump deploy

* [19] Remove <NextMajor> callouts (#6844)

* Remove <NextMajor> callouts

* rm if(node)

* Delete removed APIs from 19 docs (#6845)

* Add information about ref handling in strict mode (#6777)

* Add information about DOM ref handling in strict mode

* switch order of ref object / ref callback in strictmode doc

* use 'refs to components' terminology instead of 'DOM refs'

* update references to canary/r19

* Expand usage example and remove badges

---------

Co-authored-by: Rick Hanlon <rickhanlonii@fb.com>

* [19] s/"Server Action"/"Server Function" (#7180)

* [19] s/Server Action/Server Function

* Revert /blog and change redirect

* Add note

* Tweak note

* [v19] Update sandboxes to 19 RC (#7196)

* Update transition docs for React 19 (#6837)

* Add async transitions to React 19 docs

* Updates from feedback

* tweaks

* grammar

* Add startTranstion API

* Apply suggestions from code review

Co-authored-by: Noah Lemen <noah.lemen@gmail.com>

* Updated

* capitalization

* grammar

---------

Co-authored-by: Noah Lemen <noah.lemen@gmail.com>

* [19] Add docs for prerender APIs (#7320)

* Add prerender APIs

* fix code blocks

---------

Co-authored-by: Noah Lemen <noah.lemen@gmail.com>
2024-12-05 14:03:22 -05:00
Andre Sander
eb174dd932 Update components-and-hooks-must-be-pure.md (#7245) 2024-10-23 12:12:04 -04:00