Skip to content

Commit 9f11789

Browse files
committed
Merge remote-tracking branch 'legacy/main' into legacy-merge
# Conflicts: # beta/package.json # beta/src/content/learn/add-react-to-a-website.md # beta/src/content/learn/describing-the-ui.md # beta/src/content/learn/editor-setup.md # beta/src/content/learn/javascript-in-jsx-with-curly-braces.md # beta/src/content/learn/react-developer-tools.md # beta/src/content/learn/start-a-new-react-project.md # beta/src/sidebarLearn.json # beta/yarn.lock # content/docs/add-react-to-a-website.md # content/docs/cdn-links.md # content/docs/components-and-props.md # content/docs/composition-vs-inheritance.md # content/docs/conditional-rendering.md # content/docs/create-a-new-react-app.md # content/docs/error-boundaries.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/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-state.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/portals.md # content/docs/react-without-es6.md # content/docs/react-without-jsx.md # content/docs/reconciliation.md # content/docs/reference-dom-elements.md # content/docs/reference-events.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/refs-and-the-dom.md # content/docs/render-props.md # content/docs/rendering-elements.md # content/docs/state-and-lifecycle.md # content/docs/strict-mode.md # content/docs/thinking-in-react.md # content/docs/uncontrolled-components.md # content/docs/web-components.md # content/tutorial/tutorial.md # yarn.lock
2 parents c7567c8 + c2cb18d commit 9f11789

File tree

779 files changed

+7568
-103634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

779 files changed

+7568
-103634
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Thank you for the PR! Contributors like you keep React awesome!
44
55
Please see the Contribution Guide for guidelines:
66
7-
https://github.com/reactjs/reactjs.org/blob/main/CONTRIBUTING.md
7+
https://github.com/reactjs/legacy.reactjs.org/blob/main/CONTRIBUTING.md
88
99
If your PR references an existing issue, please add the issue number below
1010

.github/labeler.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/analyze.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

.github/workflows/analyze_comment.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/beta_site_lint.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/label.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,20 @@
1-
# reactjs.org
1+
# legacy.reactjs.org
22

3-
This repo contains the source code and documentation powering [reactjs.org](https://reactjs.org/).
3+
This repo contains the source code and documentation powering [legacy.reactjs.org](https://legacy.reactjs.org/).
44

5-
## Getting started
5+
## Not actively maintained
66

7-
### Prerequisites
7+
This site is archived and not maintained. For new React docs, go to [react.dev](https://react.dev) ([repository](https://github.com/reactjs/react.dev)).
88

9-
1. Git
10-
1. Node: any 12.x version starting with v12.0.0 or greater
11-
1. Yarn v1: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
12-
1. A fork of the repo (for any contributions)
13-
1. A clone of the [reactjs.org repo](https://github.com/reactjs/reactjs.org) on your local machine
9+
## Installation
1410

15-
### Installation
16-
17-
1. `cd reactjs.org` to go into the project root
11+
1. `cd legacy.reactjs.org` to go into the project root
1812
1. `yarn` to install the website's npm dependencies
1913

20-
### Running locally
14+
## Running locally
2115

22-
1. `yarn dev` to start the hot-reloading development server (powered by [Gatsby](https://www.gatsbyjs.org))
16+
1. `yarn dev` to start the development server (powered by [Gatsby](https://www.gatsbyjs.org))
2317
1. `open http://localhost:8000` to open the site in your favorite browser
2418

25-
## Contributing
26-
27-
### Guidelines
28-
29-
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/reactjs.org/blob/main/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.
30-
31-
### Create a branch
32-
33-
1. `git checkout main` from any folder in your local `reactjs.org` repository
34-
1. `git pull origin main` to ensure you have the latest main code
35-
1. `git checkout -b the-name-of-my-branch` (replacing `the-name-of-my-branch` with a suitable name) to create a branch
36-
37-
### Make the change
38-
39-
1. Follow the ["Running locally"](#running-locally) instructions
40-
1. Save the files and check in the browser
41-
1. Changes to React components in `src` will hot-reload
42-
1. Changes to markdown files in `content` will hot-reload
43-
1. If working with plugins, you may need to remove the `.cache` directory and restart the server
44-
45-
### Test the change
46-
47-
1. If possible, test any visual changes in all latest versions of common browsers, on both desktop and mobile.
48-
1. Run `yarn check-all` from the project root. (This will run Prettier, ESLint, and Flow.)
49-
50-
### Push it
51-
52-
1. `git add -A && git commit -m "My message"` (replacing `My message` with a commit message, such as `Fix header logo on Android`) to stage and commit your changes
53-
1. `git push my-fork-name the-name-of-my-branch`
54-
1. Go to the [reactjs.org repo](https://github.com/reactjs/reactjs.org) and you should see recently pushed branches.
55-
1. Follow GitHub's instructions.
56-
1. If possible, include screenshots of visual changes. A preview build is triggered after your changes are pushed to GitHub.
57-
58-
## Translation
59-
60-
If you are interested in translating `reactjs.org`, please see the current translation efforts at [translations.reactjs.org](https://translations.reactjs.org/).
61-
62-
63-
If your language does not have a translation and you would like to create one, please follow the instructions at [reactjs.org Translations](https://github.com/reactjs/reactjs.org-translation#translating-reactjsorg).
64-
65-
## Troubleshooting
66-
67-
- `yarn reset` to clear the local cache
68-
6919
## License
70-
Content submitted to [reactjs.org](https://reactjs.org/) is CC-BY-4.0 licensed, as found in the [LICENSE-DOCS.md](LICENSE-DOCS.md) file.
20+
Content at [legacy.reactjs.org](https://legacy.reactjs.org/) is CC-BY-4.0 licensed, as found in the [LICENSE-DOCS.md](LICENSE-DOCS.md) file.

beta/.env.development

Lines changed: 0 additions & 1 deletion
This file was deleted.

beta/.env.production

Lines changed: 0 additions & 2 deletions
This file was deleted.

beta/.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

beta/.eslintrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

beta/.gitignore

Lines changed: 0 additions & 40 deletions
This file was deleted.

beta/.husky/pre-commit

Lines changed: 0 additions & 5 deletions
This file was deleted.

beta/.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)