mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
Update README.md with react.dev links (#27765)
## Summary Update legacy reactjs.org links and update to the corresponding ones on react.dev ## How did you test this change? Verify all links go to the expected pages
This commit is contained in:
parent
87cb0bf182
commit
60ad3693a5
35
README.md
35
README.md
|
|
@ -1,4 +1,4 @@
|
||||||
# [React](https://reactjs.org/) · [](https://github.com/facebook/react/blob/main/LICENSE) [](https://www.npmjs.com/package/react) [](https://circleci.com/gh/facebook/react) [](https://reactjs.org/docs/how-to-contribute.html#your-first-pull-request)
|
# [React](https://react.dev/) · [](https://github.com/facebook/react/blob/main/LICENSE) [](https://www.npmjs.com/package/react) [](https://circleci.com/gh/facebook/react) [](https://legacy.reactjs.org/docs/how-to-contribute.html#your-first-pull-request)
|
||||||
|
|
||||||
React is a JavaScript library for building user interfaces.
|
React is a JavaScript library for building user interfaces.
|
||||||
|
|
||||||
|
|
@ -12,11 +12,9 @@ React is a JavaScript library for building user interfaces.
|
||||||
|
|
||||||
React has been designed for gradual adoption from the start, and **you can use as little or as much React as you need**:
|
React has been designed for gradual adoption from the start, and **you can use as little or as much React as you need**:
|
||||||
|
|
||||||
* Use [Online Playgrounds](https://reactjs.org/docs/getting-started.html#online-playgrounds) to get a taste of React.
|
* Use [Quick Start](https://react.dev/learn) to get a taste of React.
|
||||||
* [Add React to a Website](https://reactjs.org/docs/add-react-to-a-website.html) as a `<script>` tag in one minute.
|
* [Add React to an Existing Project](https://react.dev/learn/add-react-to-an-existing-project) to use as little or as much React as you need.
|
||||||
* [Create a New React App](https://reactjs.org/docs/create-a-new-react-app.html) if you're looking for a powerful JavaScript toolchain.
|
* [Create a New React App](https://react.dev/learn/start-a-new-react-project) if you're looking for a powerful JavaScript toolchain.
|
||||||
|
|
||||||
You can use React as a `<script>` tag from a [CDN](https://reactjs.org/docs/cdn-links.html), or as a `react` package on [npm](https://www.npmjs.com/package/react).
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|
@ -26,18 +24,23 @@ Check out the [Getting Started](https://react.dev/learn) page for a quick overvi
|
||||||
|
|
||||||
The documentation is divided into several sections:
|
The documentation is divided into several sections:
|
||||||
|
|
||||||
* [Tutorial](https://reactjs.org/tutorial/tutorial.html)
|
* [Quick Start](https://react.dev/learn)
|
||||||
* [Main Concepts](https://reactjs.org/docs/hello-world.html)
|
* [Tutorial](https://react.dev/learn/tutorial-tic-tac-toe)
|
||||||
* [Advanced Guides](https://reactjs.org/docs/jsx-in-depth.html)
|
* [Thinking in React](https://react.dev/learn/thinking-in-react)
|
||||||
* [API Reference](https://reactjs.org/docs/react-api.html)
|
* [Installation](https://react.dev/learn/installation)
|
||||||
* [Where to Get Support](https://reactjs.org/community/support.html)
|
* [Describing the UI](https://react.dev/learn/describing-the-ui)
|
||||||
* [Contributing Guide](https://reactjs.org/docs/how-to-contribute.html)
|
* [Adding Interactivity](https://react.dev/learn/adding-interactivity)
|
||||||
|
* [Manging State](https://react.dev/learn/managing-state)
|
||||||
|
* [Advanced Guides](https://react.dev/learn/escape-hatches)
|
||||||
|
* [API Reference](https://react.dev/reference/react)
|
||||||
|
* [Where to Get Support](https://react.dev/community)
|
||||||
|
* [Contributing Guide](https://legacy.reactjs.org/docs/how-to-contribute.html)
|
||||||
|
|
||||||
You can improve it by sending pull requests to [this repository](https://github.com/reactjs/reactjs.org).
|
You can improve it by sending pull requests to [this repository](https://github.com/reactjs/reactjs.org).
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
We have several examples [on the website](https://reactjs.org/). Here is the first one to get you started:
|
We have several examples [on the website](https://react.dev/). Here is the first one to get you started:
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
|
|
@ -52,7 +55,7 @@ root.render(<HelloMessage name="Taylor" />);
|
||||||
|
|
||||||
This example will render "Hello Taylor" into a container on the page.
|
This example will render "Hello Taylor" into a container on the page.
|
||||||
|
|
||||||
You'll notice that we used an HTML-like syntax; [we call it JSX](https://reactjs.org/docs/introducing-jsx.html). JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML. If you're using React as a `<script>` tag, read [this section](https://reactjs.org/docs/add-react-to-a-website.html#optional-try-react-with-jsx) on integrating JSX; otherwise, the [recommended JavaScript toolchains](https://reactjs.org/docs/create-a-new-react-app.html) handle it automatically.
|
You'll notice that we used an HTML-like syntax; [we call it JSX](https://react.dev/learn#writing-markup-with-jsx). JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
|
@ -62,9 +65,9 @@ The main purpose of this repository is to continue evolving React core, making i
|
||||||
|
|
||||||
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.fb.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
|
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.fb.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
|
||||||
|
|
||||||
### [Contributing Guide](https://reactjs.org/docs/how-to-contribute.html)
|
### [Contributing Guide](https://legacy.reactjs.org/docs/how-to-contribute.html)
|
||||||
|
|
||||||
Read our [contributing guide](https://reactjs.org/docs/how-to-contribute.html) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.
|
Read our [contributing guide](https://legacy.reactjs.org/docs/how-to-contribute.html) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.
|
||||||
|
|
||||||
### Good First Issues
|
### Good First Issues
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user