From 963829f2835ef9ced4b5d20defb4b854b01943c6 Mon Sep 17 00:00:00 2001 From: Pranav Yadav Date: Tue, 21 Mar 2023 06:52:06 +0530 Subject: [PATCH] FIX: Various 'hrefs' - 'beta.reactjs.org' -> 'react.dev' (#5768) - add relative hrefs --- src/content/blog/2021/12/17/react-conf-2021-recap.md | 2 +- .../15/react-labs-what-we-have-been-working-on-june-2022.md | 6 +++--- src/content/community/videos.md | 2 +- src/content/learn/render-and-commit.md | 2 +- src/content/reference/react/Fragment.md | 2 +- src/pages/404.js | 2 +- src/pages/500.js | 2 +- src/siteConfig.ts | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/content/blog/2021/12/17/react-conf-2021-recap.md b/src/content/blog/2021/12/17/react-conf-2021-recap.md index 87e6e3c6..89e407af 100644 --- a/src/content/blog/2021/12/17/react-conf-2021-recap.md +++ b/src/content/blog/2021/12/17/react-conf-2021-recap.md @@ -95,7 +95,7 @@ Looking further into the future, [Xuan Huang (黄玄)](https://twitter.com/Huxpr ## React docs keynote {/*react-docs-keynote*/} -[Rachel Nabors](https://twitter.com/rachelnabors) kicked off a section of talks about learning and designing with React with a keynote about our investment in React's [new docs](https://beta.reactjs.org/): +[Rachel Nabors](https://twitter.com/rachelnabors) kicked off a section of talks about learning and designing with React with a keynote about our investment in React's new docs ([now shipped as react.dev](/blog/2023/03/16/introducing-react-dev)): diff --git a/src/content/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.md b/src/content/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.md index 5533314d..df8f04f0 100644 --- a/src/content/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.md +++ b/src/content/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.md @@ -41,7 +41,7 @@ Static Site Generation (SSG) and Incremental Static Regeneration (ISR) are great We gave an [early preview](https://www.youtube.com/watch?v=lGEMwh32soc) of React Forget at React Conf 2021. It’s a compiler that automatically generates the equivalent of `useMemo` and `useCallback` calls to minimize the cost of re-rendering, while retaining React’s programming model. -Recently, we finished a rewrite of the compiler to make it more reliable and capable. This new architecture allows us to analyze and memoize more complex patterns such as the use of [local mutations](https://beta.reactjs.org/learn/keeping-components-pure#local-mutation-your-components-little-secret), and opens up many new compile-time optimization opportunities beyond just being on par with memoization hooks. +Recently, we finished a rewrite of the compiler to make it more reliable and capable. This new architecture allows us to analyze and memoize more complex patterns such as the use of [local mutations](/learn/keeping-components-pure#local-mutation-your-components-little-secret), and opens up many new compile-time optimization opportunities beyond just being on par with memoization hooks. We’re also working on a playground for exploring many aspects of the compiler. While the goal of the playground is to make development of the compiler easier, we think that it will make it easier to try it out and build intuition for what the compiler does. It reveals various insights into how it works under the hood, and live renders the compiler’s outputs as you type. This will be shipped together with the compiler when it’s released. @@ -72,8 +72,8 @@ We are working on a new version for the Interaction Tracing API (tentatively cal ## New React Docs {/*new-react-docs*/} -Last year, we announced the [beta version](https://beta.reactjs.org/) of the new React documentation website. The new learning materials teach Hooks first and has new diagrams, illustrations, as well as many interactive examples and challenges. We took a break from that work to focus on the React 18 release, but now that React 18 is out, we’re actively working to finish and ship the new documentation. +Last year, we announced the beta version of the new React documentation website ([later shipped as react.dev](/blog/2023/03/16/introducing-react-dev)) of the new React documentation website. The new learning materials teach Hooks first and has new diagrams, illustrations, as well as many interactive examples and challenges. We took a break from that work to focus on the React 18 release, but now that React 18 is out, we’re actively working to finish and ship the new documentation. -We are currently writing a detailed section about effects, as we’ve heard that is one of the more challenging topics for both new and experienced React users. [Synchronizing with Effects](https://beta.reactjs.org/learn/synchronizing-with-effects) is the first published page in the series, and there are more to come in the following weeks. When we first started writing a detailed section about effects, we’ve realized that many common effect patterns can be simplified by adding a new primitive to React. We’ve shared some initial thoughts on that in the [useEvent RFC](https://github.com/reactjs/rfcs/pull/220). It is currently in early research, and we are still iterating on the idea. We appreciate the community’s comments on the RFC so far, as well as the [feedback](https://github.com/reactjs/reactjs.org/issues/3308) and contributions to the ongoing documentation rewrite. We’d specifically like to thank [Harish Kumar](https://github.com/harish-sethuraman) for submitting and reviewing many improvements to the new website implementation. +We are currently writing a detailed section about effects, as we’ve heard that is one of the more challenging topics for both new and experienced React users. [Synchronizing with Effects](/learn/synchronizing-with-effects) is the first published page in the series, and there are more to come in the following weeks. When we first started writing a detailed section about effects, we’ve realized that many common effect patterns can be simplified by adding a new primitive to React. We’ve shared some initial thoughts on that in the [useEvent RFC](https://github.com/reactjs/rfcs/pull/220). It is currently in early research, and we are still iterating on the idea. We appreciate the community’s comments on the RFC so far, as well as the [feedback](https://github.com/reactjs/reactjs.org/issues/3308) and contributions to the ongoing documentation rewrite. We’d specifically like to thank [Harish Kumar](https://github.com/harish-sethuraman) for submitting and reviewing many improvements to the new website implementation. *Thanks to [Sophie Alpert](https://twitter.com/sophiebits) for reviewing this blog post!* diff --git a/src/content/community/videos.md b/src/content/community/videos.md index 379bb09e..3fad9578 100644 --- a/src/content/community/videos.md +++ b/src/content/community/videos.md @@ -58,7 +58,7 @@ Looking further into the future, [Xuan Huang (黄玄)](https://twitter.com/Huxpr ### React docs keynote {/*react-docs-keynote*/} -[Rachel Nabors](https://twitter.com/rachelnabors) kicked off a section of talks about learning and designing with React with a keynote about our investment in React's [new docs](https://beta.reactjs.org/): +[Rachel Nabors](https://twitter.com/rachelnabors) kicked off a section of talks about learning and designing with React with a keynote about our investment in React's new docs ([now shipped as react.dev](/blog/2023/03/16/introducing-react-dev)): diff --git a/src/content/learn/render-and-commit.md b/src/content/learn/render-and-commit.md index ddffe7a4..84bf904c 100644 --- a/src/content/learn/render-and-commit.md +++ b/src/content/learn/render-and-commit.md @@ -38,7 +38,7 @@ There are two reasons for a component to render: ### Initial render {/*initial-render*/} -When your app starts, you need to trigger the initial render. Frameworks and sandboxes sometimes hide this code, but it's done by calling [`createRoot`](https://beta.reactjs.org/apis/react-dom/client/createRoot) with the target DOM node, and then calling its `render` method with your component: +When your app starts, you need to trigger the initial render. Frameworks and sandboxes sometimes hide this code, but it's done by calling [`createRoot`](/reference/react-dom/client/createRoot) with the target DOM node, and then calling its `render` method with your component: diff --git a/src/content/reference/react/Fragment.md b/src/content/reference/react/Fragment.md index 1cb63cbc..63845040 100644 --- a/src/content/reference/react/Fragment.md +++ b/src/content/reference/react/Fragment.md @@ -27,7 +27,7 @@ Wrap elements in `` to group them together in situations where you nee #### Props {/*props*/} -- **optional** `key`: Fragments declared with the explicit `` syntax may have [keys.](https://beta.reactjs.org/learn/rendering-lists#keeping-list-items-in-order-with-key) +- **optional** `key`: Fragments declared with the explicit `` syntax may have [keys.](/learn/rendering-lists#keeping-list-items-in-order-with-key) #### Caveats {/*caveats*/} diff --git a/src/pages/404.js b/src/pages/404.js index d79bf17b..2a88fc29 100644 --- a/src/pages/404.js +++ b/src/pages/404.js @@ -16,7 +16,7 @@ export default function NotFound() {

This page doesn’t exist.

If this is a mistake{', '} - + let us know {', '} diff --git a/src/pages/500.js b/src/pages/500.js index 136cb391..b043e35b 100644 --- a/src/pages/500.js +++ b/src/pages/500.js @@ -20,7 +20,7 @@ export default function NotFound() {

Sorry about that.

If you’d like, please{' '} - + report a bug.

diff --git a/src/siteConfig.ts b/src/siteConfig.ts index f82b2ddc..bc02e19e 100644 --- a/src/siteConfig.ts +++ b/src/siteConfig.ts @@ -3,7 +3,7 @@ */ export const siteConfig = { - editUrl: 'https://github.com/reactjs/reactjs.org/edit/beta/src/pages', + editUrl: 'https://github.com/reactjs/react.dev/tree/main/src/pages', copyright: `Copyright © ${new Date().getFullYear()} Facebook Inc. All Rights Reserved.`, repoUrl: 'https://github.com/facebook/react', twitterUrl: 'https://twitter.com/reactjs',