Commit Graph

6328 Commits

Author SHA1 Message Date
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 (黄玄)
d3a5f8a803 Capitalize word "Fragment" (#6425)
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:26 -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
Luna
44f442d5b2 Add space for canary title (#6416)
Co-authored-by: Luna Wei <luwe@fb.com>
2023-11-08 15:55:40 -08:00
Kathryn Middleton
49ebed1b5b Fix useOptimistic demo bug (#6422) 2023-11-08 13:08:58 -05:00
Kathryn Middleton
eeb0979c3c Update event label and value name (#6421) 2023-11-08 11:40:02 -05:00
Kathryn Middleton
721479b346 Check for value before passing to gtag (#6415) 2023-11-07 09:36:55 -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
Alen Ajam
8727204b04 fix Illustration and IllustrationBlock alt color on dark mode (#5981) 2023-11-06 15:22:48 -08:00
Soichiro Miki
617065b8be Fix style in React Reference Overview (#6410) 2023-11-06 14:11:40 -08:00
Soichiro Miki
55b9e04da0 Remove "canary: true" from useTransition in Sidebar (#6411) 2023-11-06 14:09:49 -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
Sophie Alpert
b8acf016dc Remove meta description from most pages (#6392)
Google uses this on many of our API doc pages and it's not a good snippet. Only put this on the homepage but leave the og:description and twitter:description.
2023-10-27 16:30:20 -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
Strek
5d2113b3b5 typos (#6390) 2023-10-27 10:47:28 +05:30
Matt Carroll
4b333ca000 Add <form> Component reference documentation (#6312)
Co-authored-by: Luna <lunaleaps@gmail.com>
2023-10-26 15:22:37 -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
Nikhil Gupta
76c1bde5c7 Using strict equality in the JS example for City Quiz (#6373)
Co-authored-by: Nikhil Gupta <nikhil.gupta5667@gmai.com>
2023-10-25 22:48:43 -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
David McCabe
6ef844b906 useFormState reference fixes (#6383)
* Add useFormState reference

* Matt's suggestions for useFormState reference

* Incorporated PR feedback for useFormState
2023-10-25 13:18:47 -07:00
David McCabe
5e40d13bcd Add useFormState reference (#6338)
Add useFormState reference
2023-10-25 10:40:39 -07:00
Sophie Alpert
2779615e64 Warn about low entropy in taintUniqueValue.md (#6379)
* Warn about low entropy in taintUniqueValue.md

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

Co-authored-by: Jan Kassens <jan@kassens.net>

---------

Co-authored-by: Jan Kassens <jan@kassens.net>
2023-10-24 15:00:26 -07:00
Kathryn Middleton
63f9470249 Add Error Boundary to useTransition API docs (#6354)
* Add Error Boundary to useTransition docs

* add Error Boundary to useTransition

* Use Canary

* Add Error Boundary to useTransition API docs

* Update src/components/MDX/Sandpack/Preview.tsx

Co-authored-by: Jan Kassens <jan@kassens.net>

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

Co-authored-by: Luna <lunaleaps@gmail.com>

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

Co-authored-by: Luna <lunaleaps@gmail.com>

* Add Error Boundary to useTransition docs

* add Error Boundary to useTransition

* Use Canary

* Add Error Boundary to useTransition API docs

* Update src/components/MDX/Sandpack/Preview.tsx

Co-authored-by: Jan Kassens <jan@kassens.net>

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

Co-authored-by: Luna <lunaleaps@gmail.com>

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

Co-authored-by: Luna <lunaleaps@gmail.com>

* Address comments and update usage example

* Address comments and update usage example

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

Co-authored-by: Luna <lunaleaps@gmail.com>

---------

Co-authored-by: Jan Kassens <jan@kassens.net>
Co-authored-by: Luna <lunaleaps@gmail.com>
2023-10-24 14:26:01 -07:00
Soichiro Miki
bbdbaca1ef Fixes related to "Your UI as a Tree" (#6374) 2023-10-24 12:06:25 -07:00
Kathryn Middleton
717f9b5da0 Remove unsupported ga-lite and update existing calls to GA4 (#6366)
* Cleanup old ga-lite tag and refactor GA4

* cleanup

* cleanup2
2023-10-24 07:35:15 -07:00
Julian Weiss
a0cacd7d3a Fix onScroll → onWheel typo in common-props (#6364) 2023-10-21 22:09:44 -07:00
Matt Carroll
16f90a936a Minor fixes to Understand Your UI as a Tree learn doc (#6365) 2023-10-20 14:00:10 -07:00
Luna
9af01e2bb2 Describing Your UI > Your UI as a tree (#6334)
Co-authored-by: Luna Wei <luwe@fb.com>
2023-10-19 09:12:51 -07:00
Toru Kobayashi
10574e59a8 fix: add a missing import statement in useFormStatus.md (#6356)
* fix: add a missing import statement in useFormStatus.md

* Update src/content/reference/react-dom/hooks/useFormStatus.md

Co-authored-by: Ahmed Abdelbaset <A7med3bdulBaset@gmail.com>

---------

Co-authored-by: Ahmed Abdelbaset <A7med3bdulBaset@gmail.com>
2023-10-18 14:33:54 +05:30
dragonsuperf
b68e15a756 fix typo in react-dom/hooks (#6355) 2023-10-18 14:29:59 +05:30
Yoshitaka Terazawa
5750680120 docs: Remove unnecessary when (#6344) 2023-10-17 19:43:37 -07:00
Matt Carroll
90ca701621 Add useFormStatus Hook API reference documentation (#6314)
Co-authored-by: Luna Wei <luwe@fb.com>
2023-10-17 15:33:17 -07:00
Alex P. Andrade
d22efb32f1 Added new meetup in Saskatoon - SK (#6341)
Added new meetup in Saskatoon - SK
2023-10-17 10:59:50 +05:30