Commit Graph

6219 Commits

Author SHA1 Message Date
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
Ricky
c60bcac830 Fix TerminalBlock overflow (#6208) 2023-08-09 21:53:23 -04:00
Orta Therox
f82f392287 Adds a TypeScript overview page (#6120)
* Start of the typescript page

* Intro

* Intro

* Use State

* Use Reducer

* Start of context

* Use Ref

* Events

* Wrap up 1st draft

* Better titles

* Apply suggestions from code review

Co-authored-by: Tom Sherman <the.tomsherman@gmail.com>
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>

* Note types/react and types/react-dom, and tone down the usecontext null check

* Feedback

* Given a 2nd run through of the doc

* Apply suggestions from code review

Co-authored-by: Ricky <rickhanlonii@gmail.com>

* Document where `State` is coming from

* Link what inferred types are

* Remove "knock-on"

We already say "cause" which makes "knock-on" a bit redundant

* Move useRef TS usage to useRef reference page

dropped useEffect since there's nothing specific about this hook.

* Add installation section

* Link to framework specific guides

* Edits

* Edit footer

* Rm useRef docs

---------

Co-authored-by: Tom Sherman <the.tomsherman@gmail.com>
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Sebastian Silbermann <sebastian.silbermann@klarna.com>
2023-08-09 12:10:31 -04:00
TimLi
cd13b52ec1 Fix homepage title (#5838)
* Fix homepage title

Fixed homepage title bug, now the homepage will display the title from `content/index.md` instead of the constant `React`.

* Update index.md

Change title to "React" to keep same
2023-08-07 15:51:55 -04:00
Matan Borenkraout
a472775b7c docs: fix a broken link in react-labs-june-2022 (#6149) 2023-07-25 10:35:34 -04:00
Ahmed Abdelbaset
19c0fe2dcc fix componentdidcatch (#6107) 2023-07-24 21:29:02 -04:00
Hyejun Lee
505f6510a3 Fix root-unmount returns (#6137) 2023-07-24 21:14:44 -04:00
Jiman Jeong
b452e7b613 docs: separate dot from hyperlink (#6140) 2023-07-24 21:11:36 -04:00
Afonso Jorge Ramos
39b9692cd5 Update conferences timeline (#6159) 2023-07-24 21:03:40 -04:00
Soichiro Miki
6ebe2dd76d Fix "onFocus" description (#6168)
The "onFocus" is fired when an element receives focus, not loses.
2023-07-24 21:00:15 -04:00
Soichiro Miki
a132d8f355 Remove junk lines in common.md (#6167) 2023-07-24 20:59:14 -04:00
Soichiro Miki
cf4ad1999a Fix typo: "server-only" to "client-only" (#6164) 2023-07-24 20:57:55 -04:00
Ricky
d86cfc4763 Update useInsertionEffect docs (#6172) 2023-07-24 10:05:08 -04:00
Ricky
b9eea4da28 Fix lint warnings (#6174) 2023-07-21 19:24:36 -04:00
Brandon Dail
a30e1f954d update link to fault tolerance blog post (#6142)
this is the canonical link now 🫡
2023-07-10 13:56:39 +05:30
Sophie Alpert
292534e975 Add basic reference pages for use client and server (#5976)
* Add basic reference pages for use client and server

I guess this turned into a bit more of an FAQ but I think it's useful to have this written down in a canonical place.

* Oops, push final tweaks
2023-06-30 11:59:55 -07:00
yuta-ike
f5ffb3f0fb fix: broken link (#6115) 2023-06-26 11:25:19 +05:30
Christophe Porteneuve
9a1e1c61fc Fix incorrect inner component reference (#6044)
The inner component is `EditForm`, not `EditContact`.
2023-06-09 13:18:21 +05:30
Cole Milne
940e963798 Move recent conferences from 'Upcoming' to 'Past' section (#6089) 2023-06-08 23:29:56 +05:30
Ahmed Abdelbaset
8313857315 Fix(github-actions): Update gh-actions dependencies to versions that utilize Node.js v16 (#6084)
* Update site_lint.yml

* Update site_lint.yml
2023-06-05 13:36:56 +01:00
Ahmed Abdelbaset
ca93140eb9 Fix option's mdn link (#6080) 2023-06-02 17:12:16 +05:30
J
4184c0f560 Fix a missing word in useLayoutEffect (#6078) 2023-05-31 15:15:21 +01:00
Serhii Palamarchuk
ad4f5c7c95 Update NextJs link (#6053) 2023-05-30 17:57:57 +01:00
Tunzeki
3364c93feb Fix typo: change "intermedinate" to "indeterminate" (#6062) 2023-05-24 00:04:02 +01:00
Soichiro Miki
09185bcea9 Fix a wrong explanation in "Manipulating the DOM with Refs" (#6055)
* Fix manipulating-the-dom-with-refs

* Update manipulating-the-dom-with-refs.md

---------

Co-authored-by: dan <dan.abramov@gmail.com>
2023-05-23 15:16:39 +01:00
Viacheslav Makarov
398ace5b5e Add missing 'it' (#6061) 2023-05-23 15:01:09 +01:00
Sophie Alpert
1b5e8861ab Upgrade React and Next (#6011)
* Upgrade React and Next

* Fix bug in useNestedScrollLock

I guess refs get disconnected before passive effect cleanup runs. useLayoutEffect would also fix it but maybe this is better.
2023-05-19 17:44:58 +01:00
Kathryn Middleton
5bc25d3c36 Add accessibility note to interactivity section in the new React docs (#6026)
* Add accessibility note to interactivity section in the new React docs

* Add a11y note to Responding to Events section

* Update responding-to-events.md

---------

Co-authored-by: dan <dan.abramov@gmail.com>
2023-05-18 17:48:40 +01:00
vicsantizo
bea2ff778d fix(typos): replace word "ever" with "every" (#6039) 2023-05-16 19:01:59 +01:00
Choi siun
fd8ba03f4d docs(types): Fix incorrect period positioning in common.md (#6040) 2023-05-16 19:01:40 +01:00
Viacheslav Makarov
ebc45f563e Remove unnecessary backticks breaking markdown highlighting (#6025) 2023-05-12 17:15:37 +01:00
Sami Romdhana
da93812c78 Conditionally render offset div (#5997)
Otherwise the address is being offset to the right when the refresh icon is not displayed
2023-05-06 23:06:40 +01:00
Jan Kassens
07a3ee594f Minor tweak to remove implication that mounting can happen only once (#6003)
Mounting with Suspense and Offscreen can happen multiple times. This removes some wording that implies a that effects / lifecycle hooks only happen on first mount.
2023-05-05 18:58:18 +01:00
Hernani Fernandes
01d44e9a38 remove cancelled conference 2023 (#5999) 2023-05-05 17:06:39 +01:00
declval
fe5737bd03 Update Profiler.md (#6000) 2023-05-05 17:01:29 +01:00
Sébastien Lorber
8e24e40078 renderToReadableStream => renders a readable web stream (and not a Node.js stream) (#6001) 2023-05-05 17:01:08 +01:00
Sophie Alpert
1863ab2cb5 tweak 2023-05-03 15:35:52 -07:00
dan
1c55fe8a44 Canaries blog post (#5993)
* Revert "Revert "Canaries blog post""

This reverts commit 9a865fd515.

* words

---------

Co-authored-by: Sophie Alpert <git@sophiebits.com>
2023-05-03 18:07:50 -04:00
Elton Maiyo
69ca3dfda0 Fixes grammar (#5967) 2023-05-03 22:20:43 +01:00
Dan Abramov
9a865fd515 Revert "Canaries blog post"
This reverts commit aa88d8a776.
2023-05-03 22:18:00 +01:00
Dan Abramov
aa88d8a776 Canaries blog post 2023-05-03 22:16:52 +01:00
Andrew Clark
37a12a658b Next Channel -> Canary Channel (#5992)
See https://github.com/facebook/react/pull/26761 for more context.
2023-05-03 20:40:44 +01:00
Tunzeki
68a934313f Fix typo: change 'then' to 'the' (#5978)
The sentence reads:

In this solution, two separate conditions are used to insert a space between then name and the importance label.

It should read:
In this solution, two separate conditions are used to insert a space between the name and the importance label.
2023-04-29 21:03:25 +01:00
Matthew Runyon
8ed23b1a06 Add key param to createPortal reference (#5928)
* Add key param to createPortal reference

* Update createPortal.md

* Update createPortal.md

* Update createPortal.md

---------

Co-authored-by: dan <dan.abramov@gmail.com>
2023-04-29 03:21:36 +01:00
Dexter St-Pierre
ef55fb2710 Update Fragment.md (#5953)
The actual dom nodes that are siblings are the h1 and article nodes
2023-04-29 02:59:12 +01:00
Monica Powell
fd621b874c update chronological order of the React Miami conf (#5977) 2023-04-28 16:15:19 -07:00
김정환
7ea43a8d92 Fix typo in useMemo (product.id -> productId) (#5965) 2023-04-28 17:31:36 +01:00
dan
52c777b2c3 Document propTypes (#5974) 2023-04-28 17:25:56 +01:00
dan
496c5784a9 Fix the comment action 2023-04-28 16:12:25 +01:00