Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with react.dev @ 7bdbab14 #43

Open
wants to merge 235 commits into
base: main
Choose a base branch
from
Open

Conversation

react-translations-bot
Copy link
Collaborator

This PR was automatically generated.

Merge changes from react.dev at 7bdbab1

DO NOT SQUASH MERGE THIS PULL REQUEST!

Doing so will "erase" the commits from main and cause them to show up as conflicts the next time we merge.

kmiddleton14 and others added 30 commits May 18, 2023 17:48
… (#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 <[email protected]>
* 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.
* Fix manipulating-the-dom-with-refs

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

---------

Co-authored-by: dan <[email protected]>
…utilize Node.js v16 (#6084)

* Update site_lint.yml

* Update site_lint.yml
The inner component is `EditForm`, not `EditContact`.
* 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
this is the canonical link now 🫡
The "onFocus" is fired when an element receives focus, not loses.
* 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
* 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 <[email protected]>
Co-authored-by: Lenz Weber-Tronic <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Lenz Weber-Tronic <[email protected]>
Co-authored-by: Ricky <[email protected]>
Co-authored-by: Sebastian Silbermann <[email protected]>
* [WIP] Add UI for canary releases

* yellow

* Switch to icon and gray

* Wording, alignment, and rm flex

* Heading alignment
robinheinze and others added 29 commits February 17, 2024 12:02
"React Complier"          → "React Compiler"
"and alternative history" → "an alternative history"
* Update renderToNodeStream.md

* Update renderToStaticMarkup.md

* Update renderToStaticNodeStream.md

* Update renderToString.md
Removed the redundant alternative state management suggestion. The documentation
already emphasizes the elimination of duplication by advising to hold the
selected ID in state, making the alternative suggestion unnecessary.
* Remove useMemo from useFormStatus example

* nits
…#6659)

* fix: Update @codesandbox/sandpack-react version to 2.13.1

* fix: Updated the bundlerURL  to use a new URL
* fix: Update @codesandbox/sandpack-react version to 2.13.3

* fix: Fixed bundlerURL  to use the correct URL

* fix: Update @codesandbox/sandpack-react to version 2.13.4

* style: Hide span element in sp-icon-standalone when loading
* Add /link redirects

* Update event pooling redirect
* 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".
It seems like these localhost references were being stripped out anyway,
so this isn't a bugfix but just a small cleanup.
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 <[email protected]>
Small change to match the sidebar order.
Co-authored-by: Sebastian Silbermann <[email protected]>
Co-authored-by: Allison Strandberg <[email protected]>
This example contains a list of person objects, but only the first 3 have id properties. This appears to be a mistake; in the next use of the list all 5 person objects have this property, but it is not changed as part of an instructive exercise.

This change makes the final two with objects consistent with the remainder of the list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment