Skip to content

Conversation

rickhanlonii
Copy link
Member

Catches up the repo to set main to the latest react.dev content. In combination with #452, we will move the legacy site over to the legacy branch.

See this comment for context.

gaearon and others added 30 commits December 14, 2022 21:39
* [Beta] useLayoutEffect API

* more

* tweak

* bla
* [Beta] useEvent -> useEffectEvent

* tweak
Proposing a minor grammatical correction on the useEffect API documentation page for triggering an animation example section.
The section under consideration 'Removing unnecessary function dependencies' should use the text 'createOptions function' instead of 'options object' to match the given example correctly.
The 'options object' text is being used correctly for the previous section which talks about 'Removing unnecessary object dependencies' however, it must be updated for this section.
The serverUrl variable should be moved inside the component and can be stored as a state to indicate that it's a reactive variable and will be highlighted as such by the linter. Previously the serverUrl variable was stored outside the component function body thus making it a non-reactive value and so it shouldn't have been highlighted by the linter as a useEffect dependency as shown in the concerned example.
* <input>

* Fix typo

* tweak

* separate props

* reword

* typos

* compress

* tweaks

* Add more

* more

* shorter

* twk

* more readable

* fix

* oops

* oops

* <textarea>

* <progress>

* <select>, <progress>

* upd

* <option>

* wip common

* wip

* more

* Fix onSelect desc

* index

* stub events

* events

* twk

* all events
* Copy over tutorial from old website

Fixed up MDX syntax (self-closing `<br>` and `<img>`, and one `style`
attribute)

* wip

* more wip

* Move tutorial to be consistent with new beta docs structure

* remove HTML comments causing Vercel rendering issues

* Fixed all fixme's, minor clarity improvments, updated code links to codesandbox

* first half of tutorial re-write draft

* Finish tutorial rewrite draft

* Fix some formatting issues

* Migrate tutorial back to JavaScript to fix Sandpack errors

* Fix minor mistakes, formatting, code bugs, clean up images

* Fix empty board image size

* Fix image size and code highlighting issues

* Incorporate feedback from Dan and Sean

* edits (wip)

* edit

* edits

* Update beta/src/content/learn/tutorial-tic-tac-toe.md

Co-authored-by: Strek <[email protected]>

* tweak

Co-authored-by: Sophie Alpert <[email protected]>
Co-authored-by: Dan Abramov <[email protected]>
Co-authored-by: Strek <[email protected]>
* [Beta] Move Reference before Usage

* above -> below
* [Beta] APIs -> Reference

* oops
pradeepthakur-lab and others added 29 commits April 6, 2023 14:22
* matched the curly braces #issues5887

Added matched the curly braces on the official website tutorial. #issues5887

* Update index.md

---------

Co-authored-by: dan <[email protected]>
* Fix casing for consistency

There's 5 instances in this document in which the casing of a file name
begins with lower case, which makes it inconsisnent both with the page
and the entire tutorial.

* Fix improper idiom usage

The phrase "most of the times" is incorrect and would only make sense
in the context of a larger sentence. The phrase is actually "most of the
time" and is used in place of "usually".
Update referencing-values-with-refs.md
Fix: typo in "Animation Event Handler function" example
* Legacy API, Component: fix href for getDerivedStateFromProps

* Legacy API, Component: fix href for getDerivedStateFromProps
* fix: url

* fix: check if it works

* fix

* fix

* use legacy link

* chore: add to vercel.json
* Fix minor grammar mistakes

* Apply suggestions from code review

---------

Co-authored-by: Sophie Alpert <[email protected]>
* Add site config with domain name

* Add <meta> tags for languages

* Move legacy redirect out of vercel config

This lets us give it a more specific subdomain per lang.

* Support sites with no legacy

* Fix types

* Undo unrelated change
# Conflicts:
#	README.md
#	content/docs/accessibility.md
#	content/docs/add-react-to-a-website.md
#	content/docs/addons-shallow-renderer.md
#	content/docs/addons-test-utils.md
#	content/docs/cdn-links.md
#	content/docs/code-splitting.md
#	content/docs/components-and-props.md
#	content/docs/composition-vs-inheritance.md
#	content/docs/concurrent-mode-intro.md
#	content/docs/conditional-rendering.md
#	content/docs/context.md
#	content/docs/create-a-new-react-app.md
#	content/docs/error-boundaries.md
#	content/docs/faq-ajax.md
#	content/docs/faq-build.md
#	content/docs/faq-functions.md
#	content/docs/faq-internals.md
#	content/docs/faq-state.md
#	content/docs/faq-structure.md
#	content/docs/faq-styling.md
#	content/docs/faq-versioning.md
#	content/docs/forms.md
#	content/docs/forwarding-refs.md
#	content/docs/fragments.md
#	content/docs/getting-started.md
#	content/docs/handling-events.md
#	content/docs/hello-world.md
#	content/docs/higher-order-components.md
#	content/docs/hooks-custom.md
#	content/docs/hooks-effect.md
#	content/docs/hooks-faq.md
#	content/docs/hooks-intro.md
#	content/docs/hooks-overview.md
#	content/docs/hooks-reference.md
#	content/docs/hooks-rules.md
#	content/docs/hooks-state.md
#	content/docs/integrating-with-other-libraries.md
#	content/docs/introducing-jsx.md
#	content/docs/jsx-in-depth.md
#	content/docs/lifting-state-up.md
#	content/docs/lists-and-keys.md
#	content/docs/nav.yml
#	content/docs/optimizing-performance.md
#	content/docs/portals.md
#	content/docs/react-without-es6.md
#	content/docs/react-without-jsx.md
#	content/docs/reference-dom-elements.md
#	content/docs/reference-events.md
#	content/docs/reference-glossary.md
#	content/docs/reference-javascript-environment-requirements.md
#	content/docs/reference-react-component.md
#	content/docs/reference-react-dom-server.md
#	content/docs/reference-react-dom.md
#	content/docs/reference-react.md
#	content/docs/reference-test-renderer.md
#	content/docs/refs-and-the-dom.md
#	content/docs/render-props.md
#	content/docs/rendering-elements.md
#	content/docs/state-and-lifecycle.md
#	content/docs/static-type-checking.md
#	content/docs/strict-mode.md
#	content/docs/thinking-in-react.md
#	content/docs/typechecking-with-proptypes.md
#	content/docs/uncontrolled-components.md
#	content/docs/web-components.md
#	content/footerNav.yml
#	content/headerNav.yml
#	content/home/examples/a-component-using-external-plugins.js
#	content/home/examples/a-component-using-external-plugins.md
#	content/home/examples/a-simple-component.js
#	content/home/examples/a-simple-component.md
#	content/home/examples/a-stateful-component.js
#	content/home/examples/a-stateful-component.md
#	content/home/examples/an-application.js
#	content/home/examples/an-application.md
#	content/home/marketing/component-based.md
#	content/home/marketing/declarative.md
#	content/home/marketing/learn-once-write-anywhere.md
#	content/tutorial/nav.yml
#	content/tutorial/tutorial.md
#	content/warnings/dont-call-proptypes.md
#	content/warnings/invalid-aria-prop.md
#	content/warnings/legacy-factories.md
#	content/warnings/refs-must-have-owner.md
#	content/warnings/special-props.md
#	examples/context/motivation-problem.js
#	examples/context/motivation-solution.js
#	examples/forwarding-refs/customized-display-name.js
#	examples/forwarding-refs/fancy-button-ref.js
#	examples/forwarding-refs/fancy-button-simple-ref.js
#	examples/forwarding-refs/fancy-button.js
#	examples/forwarding-refs/log-props-after.js
#	examples/react-component-reference/get-snapshot-before-update.js
#	examples/rendering-elements/update-rendered-element.js
#	gatsby-config.js
#	package.json
#	src/components/CodeEditor/CodeEditor.js
#	src/components/CodeExample/CodeExample.js
#	src/components/ErrorDecoder/ErrorDecoder.js
#	src/components/LayoutFooter/Footer.js
#	src/components/LayoutHeader/DocSearch.js
#	src/components/LayoutHeader/Header.js
#	src/components/MarkdownPage/MarkdownPage.js
#	src/content/community/tools-data-fetching.md
#	src/content/community/tools-debugging.md
#	src/content/warnings/invalid-hook-call-warning.md
#	src/content/warnings/unknown-prop.md
#	src/html.js
#	src/pages/index.js
#	src/site-constants.js
@gaearon gaearon merged commit 12fe2c7 into main Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.