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
Ahmed Abdelbaset
7a28cf6bf5
Fix missing function keyword ( #6527 )
...
* Update use-server.md
* revert export default
2024-01-05 15:59:01 -08:00
Luna
3009d764ed
Fix error throw and for useTransition demo ( #6510 )
2023-12-20 16:58:16 -08:00
Prajwal Kulkarni
303ecae3dd
Update startTransition.md ( #6431 )
2023-12-16 06:08:30 -08:00
geeseyj
bb65ace6e0
Fix #6487 specify which Sandpack files go into a src directory ( #6496 )
...
* specify which sandbox files go in src directory
* fix some stragglers
2023-12-15 13:01:53 -08:00
Sophie Alpert
bec75ca348
Update useSyncExternalStore.md: tweak link
...
this way "cannot be marked" is all the same style and you don't skim the link text and gloss over the "cannot be"
2023-12-12 22:44:41 -08:00
dan
b9bf666462
Oops
2023-12-05 20:19:06 +00:00
dan
4226fbf3bf
Edits to useId doc ( #6464 )
2023-12-05 20:17:43 +00:00
Xiao Chuan
b1c4b4e6de
useId add server rendering usage and server api add options ( #6457 )
...
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com >
2023-12-05 17:34:18 +01:00
Xuan Huang (黄玄)
943e3ce4e5
Captailize "Strict Mode" ( #6426 )
...
Summary of changes:
There is one "TypeScript strict mode" that is kept unchanged.
Co-authored-by: xuan.huang <xuan.huang@bytedance.com >
2023-11-29 21:13:12 -08:00
Sophie Alpert
6570e6cd79
Update useSyncExternalStore.md
2023-11-23 01:44:47 -08:00
Aki Matsumoto
aa0c547cd6
Fix: incorrect sample code in documentation related to Server action ( #6445 )
...
* Fix: component not returned
* Fix: missing function statement
2023-11-21 23:27:35 +00:00
Xuan Huang (黄玄)
4f9e9a5661
Capitalize word "Canary" ( #6427 )
...
Summary of changes:
See <https://github.com/reactjs/react.dev/pull/6417 >
Co-authored-by: xuan.huang <xuan.huang@bytedance.com >
2023-11-14 06:49:55 -08:00
Xuan Huang (黄玄)
fcd00068bd
Capitalize word "Hook" ( #6424 )
...
Summary of changes:
See <https://github.com/reactjs/react.dev/pull/6417 >.
There is one exception though. The error message
“Rendered fewer hooks than expected” from React is indeed "hooks"
so I kept as-is. Shall we change the error message from React?
Co-authored-by: xuan.huang <xuan.huang@bytedance.com >
2023-11-10 13:57:45 +00:00
Kathryn Middleton
49ebed1b5b
Fix useOptimistic demo bug ( #6422 )
2023-11-08 13:08:58 -05:00
Xuan Huang (黄玄)
c5a2e15d58
Capitalize Client in "client modules" ( #6419 )
...
Summary of changes:
See <https://github.com/reactjs/react.dev/pull/6417 >
Co-authored-by: xuan.huang <xuan.huang@bytedance.com >
2023-11-07 12:50:57 +00:00
Xuan Huang (黄玄)
292e55de89
Capitalize Client/Server Component ( #6418 )
...
Summary of changes:
following <https://github.com/reactjs/react.dev/pull/6417 >
Co-authored-by: xuan.huang <xuan.huang@bytedance.com >
2023-11-07 12:32:52 +00:00
Xuan Huang (黄玄)
42ca996138
Captailize Server Action ( #6417 )
...
Summary of changes:
"Server Action", like "Effect", is a React-specific notion
that would be benefited from captailization to be distinguished
from its genertic meaning.
It seems like [Next doc](https://nextjs.org/docs/app/api-reference/functions/server-actions )
has also adopted such connventions and we should probably do the same.
Co-authored-by: xuan.huang <xuan.huang@bytedance.com >
2023-11-07 11:56:44 +00:00
Soichiro Miki
617065b8be
Fix style in React Reference Overview ( #6410 )
2023-11-06 14:11:40 -08:00
Sophie Alpert
a8790ca810
Edits for new "use client" content ( #6401 )
...
* Edits for new "use client" content
* Apply suggestions from code review
Co-authored-by: Luna <lunaleaps@gmail.com >
---------
Co-authored-by: Luna <lunaleaps@gmail.com >
2023-11-03 11:00:40 -07:00
DhanushShettyH
40a88fa9a0
Fix typoError Mentioned in issue ( #6400 )
2023-11-03 12:31:36 +05:30
Víctor Medrano
f949428632
Add closing </p> tag ( #6394 )
2023-10-31 21:46:13 +05:30
Luna
9c60167bf9
'use client' - flesh out usages and reference ( #6362 )
...
Co-authored-by: Soichiro Miki <smiki-tky@umin.ac.jp >
Co-authored-by: David McCabe <davemccabe@gmail.com >
Co-authored-by: Luna Wei <luwe@fb.com >
2023-10-30 15:03:51 -07:00
Luna
49c2d7865b
'use server' fleshing out ( #6384 )
...
Co-authored-by: Sophie Alpert <git@sophiebits.com >
Co-authored-by: Luna Wei <luwe@fb.com >
2023-10-30 14:49:11 -07:00
Brian Johnson
81f15204af
Adds Reference Overview Page ( #6378 )
...
* Adds landing page for reference section.)
* Updated hyperlinks.
* Fixes Legacy APIs link.
* Removes canary image from heading.
2023-10-30 17:43:07 -04:00
Sophie Alpert
4bdb87b172
Try to fix Google titles for directive pages ( #6393 )
...
https://twitter.com/sophiebits/status/1718042539650150609
2023-10-27 19:48:24 -07:00
Kathryn Middleton
46b45fb873
Add useOptimistic Hook API reference documentation ( #6377 )
...
* Add useOptimistic API reference documentation
* Fix title
* Add working exmaple from form and updadd parameters
* Add updates to useOptimistic
* Add updates to useOptimistic
* Add updates to useOptimistic
---------
Co-authored-by: Matt Carroll <mattca@meta.com >
2023-10-27 11:15:07 -07:00
Kevin Farrugia
f6b7f9e9be
Removed canary: true from useTransition.md ( #6389 )
2023-10-26 16:18:29 +01:00
Dominik Dorfmeister
6a94b72b2f
docs: update link to React Query ( #6369 )
2023-10-25 22:49:20 -07:00
Strek
a272f0cf23
chore: fix typos ( #6387 )
2023-10-26 09:56:55 +05:30
Soichiro Miki
97e61d72b0
Fix broken links caused by #6164 ( #6375 )
2023-10-26 09:54:24 +05:30
Eli White
df3ec65db1
Fix typo in experimental_taintObjectReference ( #6385 )
2023-10-25 17:40:15 -07:00