Commit Graph

188 Commits

Author SHA1 Message Date
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
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 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
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
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
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
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
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
Soichiro Miki
2bd6189d24 Capitalize "Effect" (#7211) 2024-10-14 14:56:53 -04:00
Jake Saterlay
2b2d0f2309 useActionState pending example (#6989)
Co-authored-by: Sebastian "Sebbie" Silbermann <silbermann.sebastian@gmail.com>
2024-10-08 10:57:10 +02:00
Reg Chiu
c7392cbcc1 docs(act.md): correct ReactDOM to ReactDOMClient (#7156)
* docs(act.md): correct ReactDOMClient to ReactDOM

* docs(act.md): switch the import to ReactDOMClient instead
2024-09-30 12:54:54 -04:00
Paul Jones
7e59348f32 Replace defunct placeKitten calls with loremFlicker and placeCat calls (#7189) 2024-09-30 11:59:43 -04:00
Ricky
c003ac4eb1 Add stable fn notes to useMemo, useTransition, useState, and useReducer (#7181) 2024-09-22 13:19:03 -04:00
TinoM
9aa2e3668d Changed the documentation of the subscribe argument to a more accurat… (#6691)
* Changed the documentation of the subscribe argument to a more accurate one.

* Update useSyncExternalStore.md

---------

Co-authored-by: Sophie Alpert <git@sophiebits.com>
2024-09-07 18:23:09 -07:00
방기현
391dadb993 Fix typos in lazy.md and cache.md (#7141) 2024-09-02 12:24:02 +05:30
Sophie Alpert
40d7349073 Parallel structure 2024-08-28 17:58:32 -07:00
Oliver Joseph Ash
6671ba7b77 Document behaviour of setting state inside useLayoutEffect (#7096)
Co-authored-by: Sebastian Silbermann <sebastian.silbermann@vercel.com>
2024-08-07 11:46:23 +02:00
Immerse
c36bd39fbd docs(api-act): api act parts word error (#6939) 2024-06-12 11:19:12 +02:00
Kasper Aamodt
04b5d4402d Small typo - Update cache.md (#6935) 2024-06-12 11:17:20 +02:00
Jack Pope
12fca4c24f Add act documentation (#6901)
* Add act documentation

* Update structure based on feedback

* Add usage examples and async act

---------

Co-authored-by: Rick Hanlon <rickhanlonii@fb.com>
2024-05-28 15:05:05 -04:00
Rachit Jain
c3bc5affa0 FIX: Typo in useEffect.md caveats (#6911)
* FIX: Typo in useEffect.md caveats

* Fix another typo
2024-05-25 13:46:42 +05:30
Ricky
ef23197db1 Clarify useEffect caveats (#6910) 2024-05-24 16:04:03 -04:00
Srikanth Kandi
057f35cc4d Replaced all instances of /react to /rsc (#6797) 2024-04-26 11:36:22 +02:00
Ricky
191852ad46 Add blog posts for React 19 Beta (#6778)
* Blog posts for React 19

* Feedback

* Feedback

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Josh Story <josh.c.story@gmail.com>

* Update src/content/blog/2024/04/25/react-19.md

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

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Matt Carroll <7158882+mattcarrollcode@users.noreply.github.com>

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Matt Carroll <7158882+mattcarrollcode@users.noreply.github.com>

* Update src/content/blog/2024/04/25/react-19.md

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

* Update src/content/blog/2024/04/25/react-19.md

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

* Update src/content/blog/2024/04/25/react-19.md

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

* Update src/content/blog/2024/04/25/react-19.md

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

* Update src/content/blog/2024/04/25/react-19.md

* Update src/content/blog/2024/04/25/react-19.md

Co-authored-by: Matt Carroll <7158882+mattcarrollcode@users.noreply.github.com>

* Thanks

* Apply suggestions from code review

Co-authored-by: Matt Carroll <7158882+mattcarrollcode@users.noreply.github.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Feedback

* nit

* Issue link

---------

Co-authored-by: Josh Story <josh.c.story@gmail.com>
Co-authored-by: Noah Lemen <noah.lemen@gmail.com>
Co-authored-by: Matt Carroll <7158882+mattcarrollcode@users.noreply.github.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2024-04-25 15:40:09 -04:00
Jan Kassens
4f5501088e Rename useFormState to useActionState (#6776)
* move useFormState api

* add redirect

* use React DOM as the name
2024-04-25 13:59:37 -04:00
Jan Kassens
9fb2f0dd12 Move use to APIs (#6774) 2024-04-24 15:58:09 -04:00
Andrew Clark
07cbd001f9 API docs for useDeferredValue's initialValue (#6747)
* API docs for useDeferredValue's initialValue

Updates the API docs for `useDeferredValue` to include the
`initialValue` option, added in
https://github.com/facebook/react/pull/27500.

This feature is slated for release in React 19.

* Add docs for onCaughtError and onUncaughtError (#6742)

* Add docs for onCaughtError and onUncaughtError

* Updates from feedback

* Add canary info, simplify a bit

---------

Co-authored-by: Ricky <rickhanlonii@fb.com>
2024-04-22 10:45:08 -04:00
Soichiro Miki
342fddb04f Revert inappropriate capitalization of "Transition" (#6746) 2024-04-10 11:19:19 -04:00
Ricky
4df3124fa2 Fix caps for React concepts (#6712) 2024-03-26 23:39:39 -04:00
Ricky
5a45b53b6e Fix hover styles in strictmode docs (#6705) 2024-03-23 11:51:37 -04:00
lauren
f55d9487c6 Reorder rules of react summary in reference index (#6698)
Small change to match the sidebar order.
2024-03-15 11:53:19 -07:00
lauren
0dc1b315e5 Add initial Rules of React docs (#6680)
This PR adds a new Rules of React reference section that covers the major rules that help developers author idiomatic React apps.

---------

Co-authored-by: Sathya Gunasekaran <gsathya.ceg@gmail.com>
2024-03-15 09:00:17 -07:00
Matt Michel
265fa26e3b Update small typo in useDeferredValue.md (#6673)
* Update useDeferredValue.md

change text from "re-render in background" to "re-render in the background"

* Update useDeferredValue.md

Change instances of "in background" to "in the background".
2024-03-03 17:26:51 -05:00
Romain Trotard
bb3a0f5c10 Fix some typos (#6478)
* Fix some typos

* Fix another typo
2024-02-11 15:19:02 -05:00
Dhanraj Acharya
6ae9922b44 Update index.md (#6622)
Fix the grammar in the documentation.
2024-02-10 22:38:00 -05:00
Ahmed Abdelbaset
82723c1b4d Remove url origin to match all translation forks (#6516)
* Update use-server.md

* Update form.md

* Update input.md

* Update react-labs-what-we-have-been-working-on-march-2023.md

* Update react-labs-what-we-have-been-working-on-june-2022.md

---------

Co-authored-by: Ricky <rickhanlonii@fb.com>
2024-01-17 21:23:33 -05:00
Jamie Kyle
7a15e96aef Fix async-await syntax (#6554) 2024-01-17 20:51:27 -05:00
Bartosz Klonowski
df8f301c2b Use 'trim()' method in useContext page to prevent form from accepting whitespaces (#6549) 2024-01-12 18:43:55 -05:00
Ricky
9d8c5add07 Revert "Add useState semicolon (#5823)" (#6543)
This reverts commit e18bb3b257.
2024-01-10 17:46:48 -05:00
Ricky
10d4a4dfb3 Fix forwardRef and useRef links (#6537) 2024-01-08 22:07:08 -05:00
probeiuscorp
bb0ac87ce4 Fix typo in experimental_taintObjectReference (#6536)
Change untained -> untainted
2024-01-08 20:33:29 -05:00