Commit Graph

99 Commits

Author SHA1 Message Date
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
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
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
Julian Weiss
a0cacd7d3a Fix onScroll → onWheel typo in common-props (#6364) 2023-10-21 22:09:44 -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
Sophie Alpert
88af66dbd1 Fix comma splice 2023-10-09 11:23:04 -07:00
Sophie Alpert
fdad54db4c Explain limitations of useSyncExternalStore with concurrency (#6339)
* Explain limitations of useSyncExternalStore with concurrency

Doesn't seem like we have this noted anywhere.

* Pull out example to code block
2023-10-09 11:06:26 -07:00
Sebastian Markbåge
9aa84b1922 Add Experimental Taint API Docs (#6337)
Co-authored-by: Matt Carroll <mattca@meta.com>
2023-10-06 14:39:04 -07:00
Sophie Alpert
3cd1723658 Mention use as a Suspense-enabled data source (#6340)
Maybe it's debatable whether we want to link to canary APIs in other pages but I feel like here it's more useful than not.
2023-10-05 22:55:01 -07:00
Ruben Amendoeira
c45fa10a95 Fix "primatives" typo in cache.md (#6335) 2023-10-04 22:37:52 -07:00
Alain Kaiser
1dfc88fe46 fix: typo in useMemo example (#6330) 2023-10-01 14:55:16 +05:30
Matan Borenkraout
01c31630f9 fix: wrong parameter name defined in explanation (#6158) 2023-09-26 00:10:41 -04:00
Xavi Lee
2390627c9c fix links (#6286) 2023-09-22 23:01:57 -07:00
JSerDev
a1fbcf8e26 Update useEffect.md - The explanation on the timing of useEffect() callback doesn't seem to be accurate. (#6207)
* Update useEffect.md

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

---------

Co-authored-by: Sophie Alpert <git@sophiebits.com>
2023-09-22 21:21:47 -07:00
Soheil Nazari
2ab8334171 Update common.md (#6290)
corrected links
2023-09-22 21:10:41 -07:00
Soichiro Miki
bdc60c2684 FIx typo: props => context (#6300) 2023-09-14 10:12:14 +05:30
anita-that-chiq
0d21915928 Replace label with placeholder (#6295) 2023-09-13 11:07:43 +05:30
Matt Carroll
742d2bff8f Add use hook API reference page (#6177)
* [WIP] Add use hook API reference page

* [WIP] Update use hook API reference page based on feedback

* [WIP] use hook API ref doc: add browser API example

* [WIP] use hook API ref doc: add context, lib examples

* [WIP] use reference doc - incorporate all current feedback

* [WIP] use reference page fix typos

* use reference doc: address PR feedback from Luna, Sophia,Eli, and Lee

* Apply @harish-sethuraman's typo fixes from code review

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

* use reference doc typo fixes

* use reference doc: update style to match other react.dev conventions

* minor fixes

* Remove client Promises, use canary labels

* Add use hook section to index, remove RSC section on components page

* Final edits

* Clarify use reference caveats

---------

Co-authored-by: Strek <ssharishkumar@gmail.com>
2023-09-08 10:33:16 -07:00
Drew Nollsch
46e7b2c687 Fixes error in cloneElement code example (#6291) 2023-09-08 17:01:17 +01:00
Sophie Alpert
20ccdf9291 Update lazy.md to mention default exports (#6285)
React.lazy dots into the `default` property. Document this.
2023-09-07 11:38:21 -07:00
Luna
7141306c90 Add cache API docs (#6240)
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Luna Wei <luwe@fb.com>
Co-authored-by: Ricky Hanlon <rickhanlonii@gmail.com>
2023-09-06 10:50:03 -07:00
Minu Kim
df9d90764a Fix flushSync.md grammar (#6282) 2023-09-06 01:48:30 -07:00
Néstor Guillermo Hernández
14629a7e19 Fix incorrect link in select.md (#6227)
Fix incorrect link in select.md
2023-09-05 14:39:45 -07:00
Luna
f67811befe Clarify these features are not related to Next (#6229)
Co-authored-by: Luna Wei <luwe@fb.com>
2023-08-21 13:34:53 -07:00
Bruno Eduardo de Souza Medeiros
b1a5b7b0b0 fix(docs): Component reference render parameters (#6098) 2023-08-10 23:14:34 -04:00
Ricky
a86663da84 Fix IntersectionObserver examples (#6212) 2023-08-10 23:10:18 -04:00
Néstor Guillermo Hernández
22d98782b9 Update correct link common.md (#6125) 2023-08-10 15:29:00 -07:00
Ricky
ae06008d57 Add UI for canary releases (#6173)
* [WIP] Add UI for canary releases

* yellow

* Switch to icon and gray

* Wording, alignment, and rm flex

* Heading alignment
2023-08-10 17:10:58 -04:00
Natsuo Kawai
fcc639b062 Fix IDs specified in the MDN page URLs (#6176) 2023-08-10 16:49:36 -04:00
Ricky
03c2e965c3 Fix recipe titles (#6209) 2023-08-09 22:46:03 -04:00